public function RoleWatchdog::isPublished in Role Watchdog 8
Returns the Role Watchdog published status indicator.
Unpublished Role Watchdog are only visible to restricted users.
Return value
bool TRUE if the Role Watchdog is published.
Overrides RoleWatchdogInterface::isPublished
File
- src/
Entity/ RoleWatchdog.php, line 139
Class
- RoleWatchdog
- Defines the Role Watchdog entity.
Namespace
Drupal\role_watchdog\EntityCode
public function isPublished() {
return (bool) $this
->getEntityKey('status');
}