public function LanguageCookieConditionManager::getDefinitions in Language Cookie 8
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/
LanguageCookieConditionManager.php, line 37
Class
- LanguageCookieConditionManager
- Manages language cookie condition plugins.
Namespace
Drupal\language_cookieCode
public function getDefinitions() {
$definitions = parent::getDefinitions();
uasort($definitions, 'Drupal\\Component\\Utility\\SortArray::sortByWeightElement');
return $definitions;
}