public function SettingGroupPluginManager::getDefinitions in Fasttoggle 8.2
Gets the definition of all plugins for this type.
Return value
mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.
Overrides DefaultPluginManager::getDefinitions
See also
\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()
File
- src/
SettingGroupPluginManager.php, line 73 - Contains \Drupal\fasttoggle\SettingGroupPluginManager.
Class
- SettingGroupPluginManager
- Manages Fasttoggle SettingGroup plugins.
Namespace
Drupal\fasttoggleCode
public function getDefinitions() {
$definitions = parent::getDefinitions();
$result = [];
foreach ($definitions as $group => $definition) {
$entityType = $definition['entityType'];
if (!isset($result[$entityType])) {
$result[$entityType] = [];
}
$result[$entityType][$group] = $definition;
}
return $result;
}