class TestItemWithSingleDescription

Same name and namespace in other branches
  1. 11.x core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithSingleDescription.php \Drupal\field_test\Plugin\Field\FieldType\TestItemWithSingleDescription

Defines the 'test_field_with_single_description' entity field item.

Attributes

#[FieldType(id: "test_field_with_single_description", label: new TranslatableMarkup("Test field (single description"), description: new TranslatableMarkup("This one-line field description is important for testing"), category: "field_test_descriptions", default_widget: "test_field_widget", default_formatter: "field_test_default")]

Hierarchy

Expanded class hierarchy of TestItemWithSingleDescription

File

core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItemWithSingleDescription.php, line 13

Namespace

Drupal\field_test\Plugin\Field\FieldType
View source
class TestItemWithSingleDescription extends TestItem {

}

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