function EntityTypeInterface::getAdminPermission
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
- 11.x 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|bool
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 402
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.