You are here

class EventBase in YAML Content 8

Same name and namespace in other branches
  1. 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\Event
View 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

Namesort descending Modifiers Type Description Overrides
EventBase::$contentLoader protected property The ContentLoader being actively executed and triggering the event.
EventBase::getContentLoader public function Gets the ContentLoader object that triggered the event.
EventBase::__construct public function Constructs a yaml content content parsed event object. 4