function DummyAjaxItem::propertyDefinitions

Same name in other branches
  1. 8.9.x core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php \Drupal\image_module_test\Plugin\Field\FieldType\DummyAjaxItem::propertyDefinitions()
  2. 10 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php \Drupal\image_module_test\Plugin\Field\FieldType\DummyAjaxItem::propertyDefinitions()
  3. 11.x core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php \Drupal\image_module_test\Plugin\Field\FieldType\DummyAjaxItem::propertyDefinitions()

Overrides FieldItemInterface::propertyDefinitions

File

core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php, line 48

Class

DummyAjaxItem
Defines a dummy field containing an AJAX handler.

Namespace

Drupal\image_module_test\Plugin\Field\FieldType

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
    $properties['value'] = DataDefinition::create('string')->setLabel(new TranslatableMarkup('Dummy string value'));
    return $properties;
}

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