public function UserRestrictionTypeManager::getType in User restrictions 8
Get a single plugin instance.
Parameters
string $id: The plugin ID.
Return value
\Drupal\user_restrictions\Plugin\UserRestrictionTypeInterface The UserRestrictionType plugin instance.
Overrides UserRestrictionTypeManagerInterface::getType
File
- src/
UserRestrictionTypeManager.php, line 59
Class
- UserRestrictionTypeManager
- Manages user restriction type plugins.
Namespace
Drupal\user_restrictionsCode
public function getType($id) {
$instances = $this
->getTypes();
return $instances[$id];
}