You are here

public function ExportEvent::__construct in Default Content for D8 8

Same name and namespace in other branches
  1. 2.0.x src/Event/ExportEvent.php \Drupal\default_content\Event\ExportEvent::__construct()

Constructs a new export event.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The exported content entity.

File

src/Event/ExportEvent.php, line 28

Class

ExportEvent
Defines event fired when content is exported.

Namespace

Drupal\default_content\Event

Code

public function __construct(ContentEntityInterface $entity) {
  $this->entity = $entity;
}