You are here

public function RegisterJSCallbacks::registerCallback in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/Events/RegisterJSCallbacks.php \Drupal\entity_browser\Events\RegisterJSCallbacks::registerCallback()

Adds callback.

Parameters

string $callback: Callback name.

File

src/Events/RegisterJSCallbacks.php, line 23

Class

RegisterJSCallbacks
Collects "selection completed" JS callbacks.

Namespace

Drupal\entity_browser\Events

Code

public function registerCallback($callback) {
  $this->callbacks[] = $callback;
}