function TopBarItemBase::weight
Returns the plugin weight.
Return value
int The plugin weight.
Overrides TopBarItemPluginInterface::weight
File
-
core/
modules/ navigation/ src/ TopBarItemBase.php, line 31
Class
- TopBarItemBase
- Base class for top bar item plugins.
Namespace
Drupal\navigationCode
public function weight() : int {
return $this->pluginDefinition['weight'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.