"modules/git@git.drupal.org:project/drupal.git" did not exist on "7a9a879a7515d544468530397b71c075bd3196db"
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
field_example.module 1.07 KiB
<?php
/**
* @file
* An example field using the Field Types API.
*/
/**
* @defgroup field_example Example: Field Types API
* @ingroup examples
* @{
* Examples using Field Types API.
*
* Providing a field requires:
* - Defining an entity field item. Entity field items are typed data objects
* containing the field values.
* - Drupal\field_example\Plugin\Field\FieldType\RgbItem
* - Defining a field type schema at config/schema/[module_name].schema.yml
* - config/schema/field_example.schema.yml
* - One or more widgets specifying how the field appears in edit forms
* - Drupal\field_example\Plugin\Field\TextWidget
* - Drupal\field_example\Plugin\Field\Text3Widget
* - Drupal\field_example\Plugin\Field\ColorPickerWidgetWidget
* - One or more formatters specifying how the field appears in displayed
* entities
* - Drupal\field_example\Plugin\FieldFormatter\SimpleTextFormatter
* - Drupal\field_example\Plugin\FieldFormatter\ColorBackgroundFormatter
*
* @see field_types
* @see field
* @see schemaapi
*
* @} End of "defgroup field_example".
*/