EntityPermissionProviderInterface.php in Entity API 8
Namespace
Drupal\entityFile
src/EntityPermissionProviderInterface.phpView source
<?php
namespace Drupal\entity;
use Drupal\Core\Entity\EntityTypeInterface;
/**
* Allows entity types to provide permissions.
*/
interface EntityPermissionProviderInterface {
/**
* Builds permissions for the given entity type.
*
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* The entity type.
*
* @return array
* The permissions.
*/
public function buildPermissions(EntityTypeInterface $entity_type);
}
Interfaces
Name | Description |
---|---|
EntityPermissionProviderInterface | Allows entity types to provide permissions. |