8.2.x EntityTypeInterface.php public EntityTypeInterface::getAdminPermission()
8.0.x EntityTypeInterface.php public EntityTypeInterface::getAdminPermission()
8.1.x EntityTypeInterface.php public EntityTypeInterface::getAdminPermission()
8.3.x EntityTypeInterface.php public 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 387

Class

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

Namespace

Drupal\Core\Entity

Code

public function getAdminPermission();