Mercurial > hg > cmmr2012-drupal-site
diff core/modules/quickedit/src/Plugin/InPlaceEditorBase.php @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/quickedit/src/Plugin/InPlaceEditorBase.php Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,25 @@ +<?php + +namespace Drupal\quickedit\Plugin; + +use Drupal\Core\Plugin\PluginBase; +use Drupal\Core\Field\FieldItemListInterface; + +/** + * Defines a base in-place editor implementation. + * + * @see \Drupal\quickedit\Annotation\InPlaceEditor + * @see \Drupal\quickedit\Plugin\InPlaceEditorInterface + * @see \Drupal\quickedit\Plugin\InPlaceEditorManager + * @see plugin_api + */ +abstract class InPlaceEditorBase extends PluginBase implements InPlaceEditorInterface { + + /** + * {@inheritdoc} + */ + public function getMetadata(FieldItemListInterface $items) { + return []; + } + +}