You are here

public function CheeseburgerMenuItem::setAttribute in Cheeseburger Menu 5.0.x

Sets menu item attribute.

Parameters

\Drupal\Core\Template\Attribute $attribute: Menu item attribute.

Return value

static The object itself for chaining.

File

src/CheeseburgerMenuItem.php, line 244

Class

CheeseburgerMenuItem
Cheeseburger menu item class.

Namespace

Drupal\cheeseburger_menu

Code

public function setAttribute(Attribute $attribute) {
  $this->attribute = $attribute;
  return $this;
}