You are here

public function ImportEntity::isPublished in Content Synchronizer 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::isPublished()
  2. 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::isPublished()

Returns the Import published status indicator.

Unpublished Import are only visible to restricted users.

Return value

bool TRUE if the Import is published.

Overrides ImportEntityInterface::isPublished

File

src/Entity/ImportEntity.php, line 186

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

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