function EntityPublishedInterface::setUnpublished

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityPublishedInterface.php \Drupal\Core\Entity\EntityPublishedInterface::setUnpublished()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityPublishedInterface.php \Drupal\Core\Entity\EntityPublishedInterface::setUnpublished()
  3. 11.x core/lib/Drupal/Core/Entity/EntityPublishedInterface.php \Drupal\Core\Entity\EntityPublishedInterface::setUnpublished()

Sets the entity as unpublished.

Return value

$this

File

core/lib/Drupal/Core/Entity/EntityPublishedInterface.php, line 34

Class

EntityPublishedInterface
Provides an interface for access to an entity's published state.

Namespace

Drupal\Core\Entity

Code

public function setUnpublished();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.