public function EntityEmbedDialog::registerJSCallback in Entity Embed 8
Registers JS callbacks.
Callbacks are responsible for getting entities from entity browser and updating form values accordingly.
File
- src/
Form/ EntityEmbedDialog.php, line 881
Class
- EntityEmbedDialog
- Provides a form to embed entities by specifying data attributes.
Namespace
Drupal\entity_embed\FormCode
public function registerJSCallback(RegisterJSCallbacks $event) {
if ($event
->getBrowserID() == $this->entityBrowser
->id()) {
$event
->registerCallback('Drupal.entityEmbedDialog.selectionCompleted');
}
}