public function OpignoActivity::isPublished in Opigno module 8
Same name and namespace in other branches
- 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\EntityCode
public function isPublished() {
return (bool) $this
->getEntityKey('status');
}