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