protected function ContentLoader::getEventDispatcher in YAML Content 8
Get the event dispatcher service.
Return value
\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher The event dispatcher service.
File
- src/
ContentLoader/ ContentLoader.php, line 203
Class
- ContentLoader
- ContentLoader class for parsing and importing YAML content.
Namespace
Drupal\yaml_content\ContentLoaderCode
protected function getEventDispatcher() {
// Lazy load the event dispatcher service.
if (!isset($this->dispatcher)) {
$this->dispatcher = $this->container
->get('event_dispatcher');
}
return $this->dispatcher;
}