Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 8 |
| FormEditor | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 8 |
| isCompatible | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getAttachments | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 6 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\quickedit\Plugin\InPlaceEditor\FormEditor. | |
| */ | |
| 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 array( | |
| 'library' => array( | |
| 'quickedit/quickedit.inPlaceEditor.form', | |
| ), | |
| ); | |
| } | |
| } |