public function UserRestrictionTypeManager::getTypesAsOptions in User restrictions 8
Get a list of all plugins names for option lists.
Return value
array List of plugin names keyed by plugin ID.
Overrides UserRestrictionTypeManagerInterface::getTypesAsOptions
File
- src/
UserRestrictionTypeManager.php, line 67
Class
- UserRestrictionTypeManager
- Manages user restriction type plugins.
Namespace
Drupal\user_restrictionsCode
public function getTypesAsOptions() {
$options = [];
foreach ($this
->getTypes() as $plugin_id => $type) {
$options[$plugin_id] = $type
->getLabel();
}
return $options;
}