You are here

class ModifyDestinationEvent in Tome 8

Allows modules to modify the HTML of a static page before save.

Hierarchy

Expanded class hierarchy of ModifyDestinationEvent

4 files declare their use of ModifyDestinationEvent
MediaOembedPathSubscriber.php in modules/tome_static/src/EventSubscriber/MediaOembedPathSubscriber.php
ModifyDestinationEventTest.php in modules/tome_static/tests/src/Kernel/ModifyDestinationEventTest.php
PagerPathSubscriber.php in modules/tome_static/src/EventSubscriber/PagerPathSubscriber.php
StaticGenerator.php in modules/tome_static/src/StaticGenerator.php

File

modules/tome_static/src/Event/ModifyDestinationEvent.php, line 10

Namespace

Drupal\tome_static\Event
View source
class ModifyDestinationEvent extends Event {

  /**
   * The destination path.
   *
   * @var string
   */
  protected $destination;

  /**
   * Constructs a ModifyDestinationEvent object.
   *
   * @param string $destination
   *   The destination path.
   */
  public function __construct($destination) {
    $this->destination = $destination;
  }

  /**
   * Gets the destination path.
   *
   * @return string
   *   The destination path.
   */
  public function getDestination() {
    return $this->destination;
  }

  /**
   * Sets the destination path.
   *
   * @param string $destination
   *   The destination path.
   */
  public function setDestination($destination) {
    $this->destination = $destination;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ModifyDestinationEvent::$destination protected property The destination path.
ModifyDestinationEvent::getDestination public function Gets the destination path.
ModifyDestinationEvent::setDestination public function Sets the destination path.
ModifyDestinationEvent::__construct public function Constructs a ModifyDestinationEvent object.