function TopBarItemBase::weight

Same name and namespace in other branches
  1. 11.x core/modules/navigation/src/TopBarItemBase.php \Drupal\navigation\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\navigation

Code

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.