class EventBase in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Events/EventBase.php \Drupal\entity_browser\Events\EventBase
Base implementation of entity browser events.
Hierarchy
- class \Drupal\entity_browser\Events\EventBase extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of EventBase
File
- src/
Events/ EventBase.php, line 10
Namespace
Drupal\entity_browser\EventsView source
class EventBase extends Event {
/**
* Entity browser id.
*
* @var string
*/
protected $entityBrowserID;
/**
* Entity browser instance UUID.
*
* @var string
*/
protected $instanceUUID;
/**
* Constructs a EntitySelectionEvent object.
*
* @param string $entity_browser_id
* Entity browser ID.
* @param string $instance_uuid
* Entity browser instance UUID.
*/
public function __construct($entity_browser_id, $instance_uuid) {
$this->entityBrowserID = $entity_browser_id;
$this->instanceUUID = $instance_uuid;
}
/**
* Gets the entity browser ID:.
*
* @return string
* Entity browser ID.
*/
public function getBrowserID() {
return $this->entityBrowserID;
}
/**
* Gets the entity browser instance UUID:.
*
* @return string
* Entity browser instance UUID.
*/
public function getBrowserInstanceUUID() {
return $this->instanceUUID;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventBase:: |
protected | property | Entity browser id. | |
EventBase:: |
protected | property | Entity browser instance UUID. | |
EventBase:: |
public | function | Gets the entity browser ID:. | |
EventBase:: |
public | function | Gets the entity browser instance UUID:. | |
EventBase:: |
public | function | Constructs a EntitySelectionEvent object. | 2 |