You are here

public function UserModuleStatus::isPublished in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::isPublished()

Returns the User module status published status indicator.

Unpublished User module status are only visible to restricted users.

Return value

bool TRUE if the User module status is published.

Overrides UserModuleStatusInterface::isPublished

File

src/Entity/UserModuleStatus.php, line 131

Class

UserModuleStatus
Defines the User module status entity.

Namespace

Drupal\opigno_module\Entity

Code

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