public LocalTaskManager::getDefinitions()
Gets the definition of all plugins for this type.
mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.
Overrides DefaultPluginManager::getDefinitions
public function getDefinitions() { $definitions = parent::getDefinitions(); $count = 0; foreach ($definitions as &$definition) { if (isset($definition['weight'])) { // Add some micro weight. $definition['weight'] += ($count++) * 1e-6; } } return $definitions; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!LocalTaskManager.php/function/LocalTaskManager::getDefinitions/8.1.x