EditorBase.php 483 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
<?php

/**
 * @file
 * Contains \Drupal\edit\EditorBase.
 */

namespace Drupal\edit;

10
use Drupal\Core\Plugin\PluginBase;
11
use Drupal\edit\EditPluginInterface;
12
use Drupal\Core\Entity\Field\FieldDefinitionInterface;
13
14

/**
15
 * Defines a base editor implementation.
16
 */
17
abstract class EditorBase extends PluginBase implements EditPluginInterface {
18
19

  /**
20
   * {@inheritdoc}
21
   */
22
  function getMetadata(FieldDefinitionInterface $field_definition, array $items) {
23
24
25
26
    return array();
  }

}