You are here

public function AdministrationLanguageNegotiationConditionManager::getDefinitions in Administration Language Negotiation 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/AdministrationLanguageNegotiationConditionManager.php, line 74

Class

AdministrationLanguageNegotiationConditionManager
Manages administration language negotiation condition plugins.

Namespace

Drupal\administration_language_negotiation

Code

public function getDefinitions() {
  $definitions = parent::getDefinitions();
  uasort($definitions, 'Drupal\\Component\\Utility\\SortArray::sortByWeightElement');
  return $definitions;
}