class ModifyDestinationEvent in Tome 8
Allows modules to modify the HTML of a static page before save.
Hierarchy
- class \Drupal\tome_static\Event\ModifyDestinationEvent extends \Symfony\Component\EventDispatcher\Event
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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ModifyDestinationEvent:: |
protected | property | The destination path. | |
ModifyDestinationEvent:: |
public | function | Gets the destination path. | |
ModifyDestinationEvent:: |
public | function | Sets the destination path. | |
ModifyDestinationEvent:: |
public | function | Constructs a ModifyDestinationEvent object. |