You are here

public function Link::setEnabled in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::setEnabled()

Sets the enabled status.

Parameters

bool $enabled: The enabled status.

Return value

\Drupal\colossal_menu\LinkInterface Return this.

Overrides LinkInterface::setEnabled

File

src/Entity/Link.php, line 341

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

public function setEnabled($enabled) {
  return $this
    ->set('enabled', $enabled);
}