You are here

public function OpignoActivity::isPublished in Opigno module 3.x

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

Returns the Activity published status indicator.

Unpublished Activity are only visible to restricted users.

Return value

bool TRUE if the Activity is published.

Overrides OpignoActivityInterface::isPublished

File

src/Entity/OpignoActivity.php, line 187

Class

OpignoActivity
Defines the Activity entity.

Namespace

Drupal\opigno_module\Entity

Code

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