FormEditor.php

Same filename in other branches
  1. 8.9.x core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php

Namespace

Drupal\quickedit\Plugin\InPlaceEditor

File

core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.php

View source
<?php

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 [
            'library' => [
                'quickedit/quickedit.inPlaceEditor.form',
            ],
        ];
    }

}

Classes

Title Deprecated Summary
FormEditor Defines the form in-place editor.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.