You are here

FormEditor.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php

File

core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php
View source
<?php

/**
 * @file
 * Contains \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor.
 */
namespace Drupal\quickedit\Plugin\InPlaceEditor;

use Drupal\Core\Field\FieldItemListInterface;
use Drupal\quickedit\Plugin\InPlaceEditorBase;

/**
 * Defines the form in-place editor.
 *
 * @InPlaceEditor(
 *   id = "form"
 * )
 */
class FormEditor extends InPlaceEditorBase {

  /**
   * {@inheritdoc}
   */
  public function isCompatible(FieldItemListInterface $items) {
    return TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function getAttachments() {
    return array(
      'library' => array(
        'quickedit/quickedit.inPlaceEditor.form',
      ),
    );
  }

}

Classes

Namesort descending Description
FormEditor Defines the form in-place editor.