You are here

EntityPermissionProviderInterface.php in Entity API 8

Namespace

Drupal\entity

File

src/EntityPermissionProviderInterface.php
View 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

Namesort descending Description
EntityPermissionProviderInterface Allows entity types to provide permissions.