class FormEditor

Same name in other branches
  1. 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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
FormEditor::getAttachments public function Returns the attachments for this editor. Overrides InPlaceEditorInterface::getAttachments
FormEditor::isCompatible public function Checks whether this in-place editor is compatible with a given field. Overrides InPlaceEditorInterface::isCompatible
InPlaceEditorBase::getMetadata public function Generates metadata that is needed specifically for this editor. Overrides InPlaceEditorInterface::getMetadata 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 6
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2

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