You are here

interface DisplayAjaxInterface in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/DisplayAjaxInterface.php \Drupal\entity_browser\DisplayAjaxInterface

Defines the interface for entity browser displays.

Hierarchy

Expanded class hierarchy of DisplayAjaxInterface

All classes that implement DisplayAjaxInterface

1 file declares its use of DisplayAjaxInterface
EntityBrowserForm.php in src/Form/EntityBrowserForm.php

File

src/DisplayAjaxInterface.php, line 8

Namespace

Drupal\entity_browser
View source
interface DisplayAjaxInterface {

  /**
   * 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.
   *
   * @param array $form
   *   Form array containing the Entity Browser elements.
   */
  public function addAjax(array &$form);

}

Members

Namesort descending Modifiers Type Description Overrides
DisplayAjaxInterface::addAjax public function Adds ajax capabilities to the entity browser form.