You are here

DisplayAjaxInterface.php in Entity Browser 8.2

Same filename and directory in other branches
  1. 8 src/DisplayAjaxInterface.php

File

src/DisplayAjaxInterface.php
View source
<?php

namespace Drupal\entity_browser;


/**
 * Defines the interface for entity browser displays.
 */
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);

}

Interfaces

Namesort descending Description
DisplayAjaxInterface Defines the interface for entity browser displays.