You are here

public function EntityPublishedInterface::setPublished in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityPublishedInterface.php \Drupal\Core\Entity\EntityPublishedInterface::setPublished()
  2. 9 core/lib/Drupal/Core/Entity/EntityPublishedInterface.php \Drupal\Core\Entity\EntityPublishedInterface::setPublished()

Sets the entity as published.

Return value

$this

See also

\Drupal\Core\Entity\EntityPublishedInterface::setUnpublished()

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function setPublished();