You are here

public function CheeseburgerMenu::__construct in Cheeseburger Menu 5.0.x

Cheeseburger menu constructor.

File

src/CheeseburgerMenu.php, line 108

Class

CheeseburgerMenu
Cheeseburger menu class.

Namespace

Drupal\cheeseburger_menu

Code

public function __construct($title = NULL) {
  $this
    ->setTitle($title);
  $this->navigationItemAttribute = new Attribute([
    'class' => [
      'cheeseburger-menu__side-menu-item',
    ],
  ]);
  $this->titleAttribute = new Attribute([
    'class' => [
      'cheeseburger-menu__title',
    ],
  ]);
  $this->wrapperAttribute = new Attribute();
}