FormEditor.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\quickedit\Plugin\InPlaceEditorFile
core/modules/quickedit/src/Plugin/InPlaceEditor/FormEditor.phpView 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
Name | Description |
---|---|
FormEditor | Defines the form in-place editor. |