You are here

public function Link::isEnabled in Colossal Menu 8

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

Returns whether the menu link is enabled (not hidden).

Return value

bool TRUE for enabled, FALSE otherwise.

Overrides MenuLinkInterface::isEnabled

1 call to Link::isEnabled()
Link::getPluginDefinition in src/Entity/Link.php
Gets the definition of the plugin implementation.

File

src/Entity/Link.php, line 362

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

public function isEnabled() {
  return (bool) $this
    ->get('enabled')->value;
}