You are here

class FormEditor in Quick Edit 7

Defines the form in-place editor.

Hierarchy

Expanded class hierarchy of FormEditor

1 string reference to 'FormEditor'
quickedit_quickedit_editor_info in ./quickedit.quickedit.inc
Implements hook_quickedit_editor_info().

File

InPlaceEditors/formEditor.php, line 15

View source
class FormEditor implements QuickEditInPlaceEditorInterface {

  /**
   * Implements QuickEditInPlaceEditorInterface::isCompatible().
   *
   * @see Drupal 8's \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor::isCompatible().
   */
  public function isCompatible(array $instance, array $items) {
    return TRUE;
  }

  /**
   * Implements QuickEditInPlaceEditorInterface::getMetadata().
   *
   * @see Drupal 8's \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor::getMetadata().
   */
  public function getMetadata(array $instance, array $items) {
    return array();
  }

  /**
   * Implements QuickEditInPlaceEditorInterface::getAttachments().
   *
   * @see Drupal 8's \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor::isCompatible().
   */
  public function getAttachments() {
    return array(
      'library' => array(
        array(
          'quickedit',
          'quickedit.inPlaceEditor.form',
        ),
      ),
    );
  }

}

Members