function TopBarItemPluginInterface::label

Returns the translated plugin label.

Return value

string|\Stringable The translated plugin label.

1 method overrides TopBarItemPluginInterface::label()
TopBarItemBase::label in core/modules/navigation/src/TopBarItemBase.php
Returns the translated plugin label.

File

core/modules/navigation/src/TopBarItemPluginInterface.php, line 18

Class

TopBarItemPluginInterface
Interface for top bar plugins.

Namespace

Drupal\navigation

Code

public function label() : string|\Stringable;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.