interface UserRestrictionTypeManagerInterface in User restrictions 8
Defines the interface for the UserRestrictionTypeManager.
Hierarchy
- interface \Drupal\user_restrictions\UserRestrictionTypeManagerInterface
Expanded class hierarchy of UserRestrictionTypeManagerInterface
All classes that implement UserRestrictionTypeManagerInterface
File
- src/
UserRestrictionTypeManagerInterface.php, line 8
Namespace
Drupal\user_restrictionsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserRestrictionTypeManagerInterface:: |
public | function | Get a single plugin instance. | 1 |
UserRestrictionTypeManagerInterface:: |
public | function | Get a list of all registered plugin instances. | 1 |
UserRestrictionTypeManagerInterface:: |
public | function | Get a list of all plugins names for option lists. | 1 |