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