public function RegisterJSCallbacks::registerCallback in Entity Browser 8.2
Same name and namespace in other branches
- 8 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\EventsCode
public function registerCallback($callback) {
$this->callbacks[] = $callback;
}