You are here

public function EventBase::__construct in YAML Content 8

Same name and namespace in other branches
  1. 8.2 src/Event/EventBase.php \Drupal\yaml_content\Event\EventBase::__construct()

Constructs a yaml content content parsed event object.

Parameters

\Drupal\yaml_content\ContentLoader\ContentLoaderInterface $loader: The ContentLoader object that triggered the event.

4 calls to EventBase::__construct()
ContentParsedEvent::__construct in src/Event/ContentParsedEvent.php
Constructs a yaml content content parsed event object.
DataImportEvent::__construct in src/Event/DataImportEvent.php
Constructs a yaml content entity pre-save event object.
EntityPostSaveEvent::__construct in src/Event/EntityPostSaveEvent.php
Constructs a yaml content entity post-save event object.
EntityPreSaveEvent::__construct in src/Event/EntityPreSaveEvent.php
Constructs a yaml content entity pre-save event object.
4 methods override EventBase::__construct()
ContentParsedEvent::__construct in src/Event/ContentParsedEvent.php
Constructs a yaml content content parsed event object.
DataImportEvent::__construct in src/Event/DataImportEvent.php
Constructs a yaml content entity pre-save event object.
EntityPostSaveEvent::__construct in src/Event/EntityPostSaveEvent.php
Constructs a yaml content entity post-save event object.
EntityPreSaveEvent::__construct in src/Event/EntityPreSaveEvent.php
Constructs a yaml content entity pre-save event object.

File

src/Event/EventBase.php, line 26

Class

EventBase
Base implementation of yaml_content events.

Namespace

Drupal\yaml_content\Event

Code

public function __construct(ContentLoaderInterface $loader) {
  $this->contentLoader = $loader;
}