function EntityTypeInterface::getAdminPermission
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
- main core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
Gets the name of the default administrative permission.
The default \Drupal\Core\Entity\EntityAccessControlHandler class checks this permission for all operations in its checkAccess() method. Entities with more complex permissions can extend this class to do their own access checks.
Return value
string|false The name of the administrative permission. Defaults to FALSE, if the permission does not exist.
1 method overrides EntityTypeInterface::getAdminPermission()
- EntityType::getAdminPermission in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Gets the name of the default administrative permission.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 408
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function getAdminPermission();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.