You are here

public function ExportEntity::setPublished in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::setPublished()
  2. 3.x src/Entity/ExportEntity.php \Drupal\content_synchronizer\Entity\ExportEntity::setPublished()

Sets the published status of a Export entity.

Parameters

bool $published: TRUE to set this Export entity to published, FALSE to set it to unpublished.

Return value

\Drupal\content_synchronizer\Entity\ExportEntityInterface The called Export entity entity.

Overrides ExportEntityInterface::setPublished

File

src/Entity/ExportEntity.php, line 153

Class

ExportEntity
Defines the Export entity entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function setPublished($published) {
  $this
    ->set('status', $published ? TRUE : FALSE);
  return $this;
}