You are here

public function Link::isEnabled in Colossal Menu 2.x

Same name and namespace in other branches
  1. 8 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 342

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

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