Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/Annotation/FieldType.php \Drupal\Core\Field\Annotation\FieldType::default_formatter
  2. 9 core/lib/Drupal/Core/Field/Annotation/FieldType.php \Drupal\Core\Field\Annotation\FieldType::default_formatter

The plugin_id of the default formatter for this field type.

This formatter must be available whenever the field type is available (i.e. provided by the field type module, or by a module the field type module depends on).

Type: string

File

core/lib/Drupal/Core/Field/Annotation/FieldType.php, line 87

Class

FieldType
Defines a FieldType annotation object.

Namespace

Drupal\Core\Field\Annotation

Code

public $default_formatter;