class EventBase in YAML Content 8
Same name and namespace in other branches
- 8.2 src/Event/EventBase.php \Drupal\yaml_content\Event\EventBase
Base implementation of yaml_content events.
Hierarchy
- class \Drupal\yaml_content\Event\EventBase extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of EventBase
File
- src/
Event/ EventBase.php, line 11
Namespace
Drupal\yaml_content\EventView source
class EventBase extends Event {
/**
* The ContentLoader being actively executed and triggering the event.
*
* @var \Drupal\yaml_content\ContentLoader\ContentLoaderInterface
*/
protected $contentLoader;
/**
* Constructs a yaml content content parsed event object.
*
* @param \Drupal\yaml_content\ContentLoader\ContentLoaderInterface $loader
* The ContentLoader object that triggered the event.
*/
public function __construct(ContentLoaderInterface $loader) {
$this->contentLoader = $loader;
}
/**
* Gets the ContentLoader object that triggered the event.
*
* @return \Drupal\yaml_content\ContentLoader\ContentLoaderInterface
* The ContentLoader object that triggered the event.
*/
public function getContentLoader() {
return $this->contentLoader;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | The ContentLoader being actively executed and triggering the event. | |
EventBase:: |
public | function | Gets the ContentLoader object that triggered the event. | |
EventBase:: |
public | function | Constructs a yaml content content parsed event object. | 4 |