class CctagsRoutes in cctags 8
Defines dynamic routes.
Hierarchy
- class \Drupal\cctags\Routing\CctagsRoutes
Expanded class hierarchy of CctagsRoutes
File
- src/
Routing/ CctagsRoutes.php, line 14 - Contains \Drupal\example\Routing\CctagsRoutes.
Namespace
Drupal\cctags\RoutingView source
class CctagsRoutes {
/**
* {@inheritdoc}
*/
public function routes() {
$routes = array();
$items = _cctags_get_settings();
foreach ($items as $key => $item) {
if ($item['page']) {
$routes['cctags.route' . $key] = new Route($item['page_path'], array(
'_controller' => '\\Drupal\\cctags\\Controller\\CctagsController::content',
'_title' => $item['page_title'],
'cctid' => $key,
'page_amount' => $item['page_amount'],
'page_mode' => $item['page_mode'],
'page_extra_class' => $item['page_extra_class'],
'page_vocname' => $item['page_vocname'],
), array(
'_permission' => 'access content',
));
}
}
return $routes;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CctagsRoutes:: |
public | function |