webdam-1.0.x-dev/src/Plugin/Field/FieldWidget/WebdamMetadataWidget.php

src/Plugin/Field/FieldWidget/WebdamMetadataWidget.php
<?php

namespace Drupal\webdam\Plugin\Field\FieldWidget;

use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Form\FormStateInterface;

/**
 * Plugin implementation of the 'webdam_metadata' widget.
 *
 * @FieldWidget(
 *   id = "webdam_metadata",
 *   label = @Translation("Webdam metadata"),
 *   field_types = {
 *     "webdam_metadata"
 *   },
 * )
 */
class WebdamMetadataWidget extends WidgetBase {

  /**
   * {@inheritdoc}
   */
  public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
    return $element;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc