You are here

CustomPermissionsInterface.php in Field Permissions 8

Same filename and directory in other branches
  1. 8.2 src/Plugin/CustomPermissionsInterface.php

File

src/Plugin/CustomPermissionsInterface.php
View source
<?php

namespace Drupal\field_permissions\Plugin;


/**
 * Denotes that this field permission type generates custom permissions.
 */
interface CustomPermissionsInterface {

  /**
   * Returns an array of permissions suitable for use in a permission callback.
   *
   * @return array
   *   An array of permissions.
   */
  public function getPermissions();

}

Interfaces

Namesort descending Description
CustomPermissionsInterface Denotes that this field permission type generates custom permissions.