Version 1
[yaffs-website] / web / core / modules / quickedit / src / Plugin / InPlaceEditor / FormEditor.php
1 <?php
2
3 namespace Drupal\quickedit\Plugin\InPlaceEditor;
4
5 use Drupal\Core\Field\FieldItemListInterface;
6 use Drupal\quickedit\Plugin\InPlaceEditorBase;
7
8 /**
9  * Defines the form in-place editor.
10  *
11  * @InPlaceEditor(
12  *   id = "form"
13  * )
14  */
15 class FormEditor extends InPlaceEditorBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function isCompatible(FieldItemListInterface $items) {
21     return TRUE;
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   public function getAttachments() {
28     return [
29       'library' => [
30         'quickedit/quickedit.inPlaceEditor.form',
31       ],
32     ];
33   }
34
35 }