Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::getAdminPermission()
  2. 9 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 385

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getAdminPermission();