You are here

interface UserRestrictionTypeManagerInterface in User restrictions 8

Defines the interface for the UserRestrictionTypeManager.

Hierarchy

Expanded class hierarchy of UserRestrictionTypeManagerInterface

All classes that implement UserRestrictionTypeManagerInterface

File

src/UserRestrictionTypeManagerInterface.php, line 8

Namespace

Drupal\user_restrictions
View source
interface UserRestrictionTypeManagerInterface {

  /**
   * Get a list of all registered plugin instances.
   *
   * @return \Drupal\user_restrictions\Plugin\UserRestrictionTypeInterface[]
   *   List of UserRestrictionType plugin instances.
   */
  public function getTypes();

  /**
   * Get a single plugin instance.
   *
   * @param string $id
   *   The plugin ID.
   *
   * @return \Drupal\user_restrictions\Plugin\UserRestrictionTypeInterface
   *   The UserRestrictionType plugin instance.
   */
  public function getType($id);

  /**
   * Get a list of all plugins names for option lists.
   *
   * @return array
   *   List of plugin names keyed by plugin ID.
   */
  public function getTypesAsOptions();

}

Members

Namesort descending Modifiers Type Description Overrides
UserRestrictionTypeManagerInterface::getType public function Get a single plugin instance. 1
UserRestrictionTypeManagerInterface::getTypes public function Get a list of all registered plugin instances. 1
UserRestrictionTypeManagerInterface::getTypesAsOptions public function Get a list of all plugins names for option lists. 1