class EventProxy in Search API Solr 4.x
Same name and namespace in other branches
- 8 src/Solarium/EventDispatcher/EventProxy.php \Drupal\search_api_solr\Solarium\EventDispatcher\EventProxy
A proxy for events defined by symfony contracts to be used with older Drupal.
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 10
Namespace
Drupal\search_api_solr\Solarium\EventDispatcherView source
class EventProxy extends Event {
/**
* @var \Symfony\Contracts\EventDispatcher\Event
*/
protected $event;
public function __construct($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 | ||
EventProxy:: |
public | function | ||
EventProxy:: |
public | function | Proxies all method calls to the original event. | |
EventProxy:: |
public | function |