You are here

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\Entity

Code

public function isPublished() {
  return (bool) $this
    ->getEntityKey('status');
}