class GroupTypeRouteProvider in Group 8
Same name and namespace in other branches
- 2.0.x src/Entity/Routing/GroupTypeRouteProvider.php \Drupal\group\Entity\Routing\GroupTypeRouteProvider
Provides routes for group types.
Hierarchy
- class \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider implements EntityHandlerInterface, EntityRouteProviderInterface
- class \Drupal\group\Entity\Routing\GroupTypeRouteProvider
Expanded class hierarchy of GroupTypeRouteProvider
File
- src/
Entity/ Routing/ GroupTypeRouteProvider.php, line 11
Namespace
Drupal\group\Entity\RoutingView source
class GroupTypeRouteProvider extends DefaultHtmlRouteProvider {
/**
* {@inheritdoc}
*/
protected function getCollectionRoute(EntityTypeInterface $entity_type) {
// @todo Remove this method when https://www.drupal.org/node/2767025 lands.
if ($route = parent::getCollectionRoute($entity_type)) {
$route
->setDefault('_title', 'Group types');
$route
->setDefault('_title_arguments', []);
return $route;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultHtmlRouteProvider:: |
protected | property | The entity field manager. | |
DefaultHtmlRouteProvider:: |
protected | property | The entity type manager. | |
DefaultHtmlRouteProvider:: |
public static | function |
Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface:: |
1 |
DefaultHtmlRouteProvider:: |
protected | function | Gets the add-form route. | 2 |
DefaultHtmlRouteProvider:: |
protected | function | Gets the add page route. | 2 |
DefaultHtmlRouteProvider:: |
protected | function | Gets the canonical route. | 3 |
DefaultHtmlRouteProvider:: |
protected | function | Gets the delete-form route. | 1 |
DefaultHtmlRouteProvider:: |
protected | function | Returns the delete multiple form route. | 1 |
DefaultHtmlRouteProvider:: |
protected | function | Gets the edit-form route. | 1 |
DefaultHtmlRouteProvider:: |
protected | function | Gets the type of the ID key for a given entity type. | 1 |
DefaultHtmlRouteProvider:: |
public | function |
Provides routes for entities. Overrides EntityRouteProviderInterface:: |
1 |
DefaultHtmlRouteProvider:: |
public | function | Constructs a new DefaultHtmlRouteProvider. | 1 |
GroupTypeRouteProvider:: |
protected | function |
Gets the collection route. Overrides DefaultHtmlRouteProvider:: |