You are here

public function SimpleMegaMenu::getName in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/SimpleMegaMenu.php \Drupal\simple_megamenu\Entity\SimpleMegaMenu::getName()

Gets the Simple mega menu name.

Return value

string Name of the Simple mega menu.

Overrides SimpleMegaMenuInterface::getName

File

src/Entity/SimpleMegaMenu.php, line 125

Class

SimpleMegaMenu
Defines the Simple mega menu entity.

Namespace

Drupal\simple_megamenu\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}