You are here

class EventBase in Entity Browser 8

Same name and namespace in other branches
  1. 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\Events
View 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

Namesort descending Modifiers Type Description Overrides
EventBase::$entityBrowserID protected property Entity browser id.
EventBase::$instanceUUID protected property Entity browser instance UUID.
EventBase::getBrowserID public function Gets the entity browser ID:.
EventBase::getBrowserInstanceUUID public function Gets the entity browser instance UUID:.
EventBase::__construct public function Constructs a EntitySelectionEvent object. 2