public function ContentParsedEvent::__construct in YAML Content 8
Same name and namespace in other branches
- 8.2 src/Event/ContentParsedEvent.php \Drupal\yaml_content\Event\ContentParsedEvent::__construct()
Constructs a yaml content content parsed event object.
Parameters
\Drupal\yaml_content\ContentLoader\ContentLoaderInterface $loader: The active Content Loader that triggered the event.
string $content_file: The full file path for the content file that was parsed.
array $parsed_content: The parsed content loaded from the content file.
Overrides EventBase::__construct
File
- src/
Event/ ContentParsedEvent.php, line 36
Class
- ContentParsedEvent
- Wraps a yaml content content parsed event for event listeners.
Namespace
Drupal\yaml_content\EventCode
public function __construct(ContentLoaderInterface $loader, $content_file, array $parsed_content) {
parent::__construct($loader);
$this->contentFile = $content_file;
$this->parsedContent = $parsed_content;
}