class EventProxy in Search API Solr 8
Same name and namespace in other branches
- 4.x src/Solarium/EventDispatcher/EventProxy.php \Drupal\search_api_solr\Solarium\EventDispatcher\EventProxy
A proxy for events defined by symfony contracts
Hierarchy
- class \Drupal\search_api_solr\Solarium\EventDispatcher\EventProxy extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of EventProxy
File
- src/
Solarium/ EventDispatcher/ EventProxy.php, line 11
Namespace
Drupal\search_api_solr\Solarium\EventDispatcherView source
class EventProxy extends LegacyEvent {
/**
* @var \Symfony\Contracts\EventDispatcher\Event
*/
protected $event;
public function __construct(Event $event) {
$this->event = $event;
}
public function isPropagationStopped() {
return $this->event
->isPropagationStopped();
}
public function stopPropagation() {
$this->event
->stopPropagation();
}
/**
* Proxies all method calls to the original event.
*/
public function __call($method, $arguments) {
return $this->event
->{$method}(...$arguments);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventProxy:: |
protected | property | ||
EventProxy:: |
public | function | Returns whether further event listeners should be triggered. | |
EventProxy:: |
public | function | Stops the propagation of the event to further event listeners. | |
EventProxy:: |
public | function | Proxies all method calls to the original event. | |
EventProxy:: |
public | function |