You are here

public function SimpleMegaMenu::isPublished in Simple Mega Menu 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/SimpleMegaMenu.php \Drupal\simple_megamenu\Entity\SimpleMegaMenu::isPublished()

Returns the Simple mega menu published status indicator.

Unpublished Simple mega menu are only visible to restricted users.

Return value

bool TRUE if the Simple mega menu is published.

Overrides SimpleMegaMenuInterface::isPublished

File

src/Entity/SimpleMegaMenu.php, line 185

Class

SimpleMegaMenu
Defines the Simple mega menu entity.

Namespace

Drupal\simple_megamenu\Entity

Code

public function isPublished() {
  return (bool) $this
    ->getEntityKey('status');
}