final class PathDeleteEvent in Hook Event Dispatcher 8
Class PathDeleteEvent.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Path\BasePathEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface
- class \Drupal\hook_event_dispatcher\Event\Path\PathDeleteEvent
Expanded class hierarchy of PathDeleteEvent
1 file declares its use of PathDeleteEvent
- hook_event_dispatcher.module in ./
hook_event_dispatcher.module - Hook event dispatcher module.
File
- src/
Event/ Path/ PathDeleteEvent.php, line 10
Namespace
Drupal\hook_event_dispatcher\Event\PathView source
final class PathDeleteEvent extends BasePathEvent {
/**
* The redirect.
*
* @var bool
*/
private $redirect;
/**
* Constructor.
*
* @param array $fields
* The raw database path fields.
*/
public function __construct(array $fields) {
parent::__construct($fields);
$this->redirect = isset($fields['redirect']) ? $fields['redirect'] : NULL;
}
/**
* Getter.
*
* @return bool
* If it's a redirect.
*/
public function isRedirect() {
return $this->redirect === TRUE;
}
/**
* Get the dispatcher type.
*
* @return string
* The dispatcher type.
*/
public function getDispatcherType() {
return HookEventDispatcherInterface::PATH_DELETE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BasePathEvent:: |
protected | property | The alias for the source. | |
BasePathEvent:: |
protected | property | Lang code. | |
BasePathEvent:: |
protected | property | The path id. | |
BasePathEvent:: |
protected | property | The source like '/node/1'. | |
BasePathEvent:: |
public | function | Getter. | |
BasePathEvent:: |
public | function | Getter. | |
BasePathEvent:: |
public | function | Getter. | |
BasePathEvent:: |
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 BasePathEvent:: |