public function AlterEntityBrowserDisplayData::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Events/AlterEntityBrowserDisplayData.php \Drupal\entity_browser\Events\AlterEntityBrowserDisplayData::__construct()
Constructs a EntitySelectionEvent object.
Parameters
string $entity_browser_id: Entity browser ID.
string $instance_uuid: Entity browser instance UUID.
array $plugin_definition: Plugin definition.
\Drupal\Core\Form\FormStateInterface $form_state: Form state object.
array $data: Data to process.
Overrides EventBase::__construct
File
- src/
Events/ AlterEntityBrowserDisplayData.php, line 47
Class
- AlterEntityBrowserDisplayData
- Allows data for an entity browser element to be altered.
Namespace
Drupal\entity_browser\EventsCode
public function __construct($entity_browser_id, $instance_uuid, array $plugin_definition, FormStateInterface $form_state, array $data) {
parent::__construct($entity_browser_id, $instance_uuid);
$this->data = $data;
$this->formState = $form_state;
$this->pluginDefinition = $plugin_definition;
}