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

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

namespace Drupal\edit;

use Drupal\Component\Plugin\PluginBase;
use Drupal\edit\EditorInterface;
12
use Drupal\field\Plugin\Core\Entity\FieldInstance;
13
14
15
16
17
18
19
20
21
22
23
24
25
26

/**
 * Defines a base editor (Create.js PropertyEditor widget) implementation.
 */
abstract class EditorBase extends PluginBase implements EditorInterface {

  /**
   * Implements \Drupal\edit\EditorInterface::getMetadata().
   */
  function getMetadata(FieldInstance $instance, array $items) {
    return array();
  }

}