TestTextfieldWidget.php

Same filename in other branches
  1. 9 core/modules/field/tests/modules/field_plugins_test/src/Plugin/Field/FieldWidget/TestTextfieldWidget.php
  2. 10 core/modules/field/tests/modules/field_plugins_test/src/Plugin/Field/FieldWidget/TestTextfieldWidget.php
  3. 11.x core/modules/field/tests/modules/field_plugins_test/src/Plugin/Field/FieldWidget/TestTextfieldWidget.php

Namespace

Drupal\field_plugins_test\Plugin\Field\FieldWidget

File

core/modules/field/tests/modules/field_plugins_test/src/Plugin/Field/FieldWidget/TestTextfieldWidget.php

View source
<?php

namespace Drupal\field_plugins_test\Plugin\Field\FieldWidget;

use Drupal\text\Plugin\Field\FieldWidget\TextfieldWidget;

/**
 * Plugin implementation of the 'field_plugins_test_text_widget' widget.
 *
 * @FieldWidget(
 *   id = "field_plugins_test_text_widget",
 *   label = @Translation("Test Text field"),
 *   field_types = {
 *     "text",
 *     "string"
 *   },
 * )
 */
class TestTextfieldWidget extends TextfieldWidget {

}

Classes

Title Deprecated Summary
TestTextfieldWidget Plugin implementation of the 'field_plugins_test_text_widget' widget.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.