Gets the name of the default collection permission.
Return value
string|null The collection permission name, or NULL if none.
See also
\Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider::getCollectionRoute()
1 method overrides EntityTypeInterface::getCollectionPermission()
- EntityType::getCollectionPermission in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets the name of the default collection permission.
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 395
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getCollectionPermission() : ?string;