public function DisplayAjaxInterface::addAjax in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/DisplayAjaxInterface.php \Drupal\entity_browser\DisplayAjaxInterface::addAjax()
Adds ajax capabilities to the entity browser form.
This will be used in Plugins like Modal that require the Entity Browser form to be sumbitted with ajax. All other plugins that don't require it can leave it blank.
Parameters
array $form: Form array containing the Entity Browser elements.
File
- src/
DisplayAjaxInterface.php, line 20
Class
- DisplayAjaxInterface
- Defines the interface for entity browser displays.
Namespace
Drupal\entity_browserCode
public function addAjax(array &$form);