You are here

public function OpignoActivity::isPublished in Opigno module 8

Same name and namespace in other branches
  1. 3.x 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');
}