You are here

public function MenuPositionLink::isEnabled in Menu Position 8

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

Return value

bool TRUE for enabled, FALSE otherwise.

Overrides MenuLinkBase::isEnabled

File

src/Plugin/Menu/MenuPositionLink.php, line 194

Class

MenuPositionLink
Defines menu links provided by menu position rules.

Namespace

Drupal\menu_position\Plugin\Menu

Code

public function isEnabled() {
  return (bool) ($this->settings
    ->get('link_display') === 'child');
}