public function OpignoModule::isPublished in Opigno module 8
Same name and namespace in other branches
- 3.x src/Entity/OpignoModule.php \Drupal\opigno_module\Entity\OpignoModule::isPublished()
Returns the Module published status indicator.
Unpublished Module are only visible to restricted users.
Return value
bool TRUE if the Module is published.
Overrides OpignoModuleInterface::isPublished
File
- src/
Entity/ OpignoModule.php, line 169
Class
- OpignoModule
- Defines the Module entity.
Namespace
Drupal\opigno_module\EntityCode
public function isPublished() {
return (bool) $this
->getEntityKey('status');
}