You are here

public function ToolbarMenuElement::rewriteLabel in Toolbar Menu 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ToolbarMenuElement.php \Drupal\toolbar_menu\Entity\ToolbarMenuElement::rewriteLabel()

Get the 'rewrite_label' property.

Return value

mixed|null The rewrite_label property

1 call to ToolbarMenuElement::rewriteLabel()
ToolbarMenuElement::getDisplayLabel in src/Entity/ToolbarMenuElement.php
Get the displayed label.

File

src/Entity/ToolbarMenuElement.php, line 90

Class

ToolbarMenuElement
Defines the Toolbar element entity.

Namespace

Drupal\toolbar_menu\Entity

Code

public function rewriteLabel() {
  return $this
    ->get('rewrite_label');
}