You are here

class FormEditor in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor
  2. 9 core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor

Defines the form in-place editor.

Plugin annotation


@InPlaceEditor(
  id = "form"
)

Hierarchy

Expanded class hierarchy of FormEditor

File

core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php, line 15

Namespace

Drupal\quickedit\Plugin\InPlaceEditor
View source
class FormEditor extends InPlaceEditorBase {

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

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

}

Members