You are here

public function SimpleMegaMenu::setName 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::setName()

Sets the Simple mega menu name.

Parameters

string $name: The Simple mega menu name.

Return value

\Drupal\simple_megamenu\Entity\SimpleMegaMenuInterface The called Simple mega menu entity.

Overrides SimpleMegaMenuInterface::setName

File

src/Entity/SimpleMegaMenu.php, line 132

Class

SimpleMegaMenu
Defines the Simple mega menu entity.

Namespace

Drupal\simple_megamenu\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}