public function ParagraphsBehaviorManager::getDefinitions in Paragraphs 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()
1 call to ParagraphsBehaviorManager::getDefinitions()
- ParagraphsBehaviorManager::getApplicableDefinitions in src/
ParagraphsBehaviorManager.php - Gets the applicable behavior plugins.
File
- src/
ParagraphsBehaviorManager.php, line 36
Class
- ParagraphsBehaviorManager
- Plugin type manager for paragraphs type behavior plugins.
Namespace
Drupal\paragraphsCode
public function getDefinitions() {
$definitions = parent::getDefinitions();
uasort($definitions, 'Drupal\\Component\\Utility\\SortArray::sortByWeightElement');
return $definitions;
}