| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function alterRoutes(RouteCollection $collection) { |
||
| 29 | $collection->get('entity.node.latest_version')->setRequirements([ |
||
| 30 | '_entity_access' => 'node.view', |
||
| 31 | '_permission' => 'view latest version,view any unpublished content', |
||
| 32 | 'node' => "\d+", |
||
| 33 | '_method' => 'GET|POST|OPTIONS' |
||
| 34 | ]); |
||
| 37 |