You are here

public function Event::setUnpublished in Event 8

@inheritDoc

Overrides EntityPublishedInterface::setUnpublished

File

src/Entity/Event.php, line 226

Class

Event
Defines the Event entity.

Namespace

Drupal\event\Entity

Code

public function setUnpublished() {
  $this
    ->set('status', FALSE);
}