public function ImportEntity::isPublished in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::isPublished()
- 3.x 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 169
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function isPublished() {
return (bool) $this
->getEntityKey('status');
}