final class PathDeleteEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php \Drupal\path_event_dispatcher\Event\Path\PathDeleteEvent
Class PathDeleteEvent.
Hierarchy
- class \Drupal\path_event_dispatcher\Event\Path\AbstractPathEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\path_event_dispatcher\Event\Path\PathDeleteEvent
Expanded class hierarchy of PathDeleteEvent
1 file declares its use of PathDeleteEvent
- path_event_dispatcher.module in modules/
path_event_dispatcher/ path_event_dispatcher.module - Path event dispatcher submodule.
File
- modules/
path_event_dispatcher/ src/ Event/ Path/ PathDeleteEvent.php, line 10
Namespace
Drupal\path_event_dispatcher\Event\PathView source
final class PathDeleteEvent extends AbstractPathEvent {
/**
* The redirect.
*
* @var bool
*/
private $redirect;
/**
* Constructor.
*
* @param array $path
* The array structure is identical to that of the return value of
* \Drupal\Core\Path\AliasStorageInterface::save().
*/
public function __construct(array $path) {
parent::__construct($path);
$this->redirect = $path['redirect'] ?? FALSE;
}
/**
* Getter.
*
* @return bool
* If it's a redirect.
*/
public function isRedirect() : bool {
return $this->redirect;
}
/**
* Get the dispatcher type.
*
* @return string
* The dispatcher type.
*/
public function getDispatcherType() : string {
return HookEventDispatcherInterface::PATH_DELETE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractPathEvent:: |
private | property | The alias for the source. | |
AbstractPathEvent:: |
private | property | Lang code. | |
AbstractPathEvent:: |
private | property | The path id. | |
AbstractPathEvent:: |
private | property | The source like '/node/1'. | |
AbstractPathEvent:: |
public | function | Getter. | |
AbstractPathEvent:: |
public | function | Getter. | |
AbstractPathEvent:: |
public | function | Getter. | |
AbstractPathEvent:: |
public | function | Getter. | |
PathDeleteEvent:: |
private | property | The redirect. | |
PathDeleteEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
PathDeleteEvent:: |
public | function | Getter. | |
PathDeleteEvent:: |
public | function |
Constructor. Overrides AbstractPathEvent:: |