You are here

public static function LengthTrait::fields in Dimension 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/LengthTrait.php \Drupal\dimension\Plugin\Field\LengthTrait::fields()
  2. 2.1.x src/Plugin/Field/LengthTrait.php \Drupal\dimension\Plugin\Field\LengthTrait::fields()
5 calls to LengthTrait::fields()
Length::defaultFieldSettings in src/Plugin/Field/FieldType/Length.php
Defines the field-level settings for this plugin.
Length::defaultSettings in src/Plugin/Field/FieldWidget/Length.php
Defines the default settings for this plugin.
Length::defaultStorageSettings in src/Plugin/Field/FieldType/Length.php
Defines the storage-level settings for this plugin.
Length::propertyDefinitions in src/Plugin/Field/FieldType/Length.php
Defines field item properties.
Length::schema in src/Plugin/Field/FieldType/Length.php
Returns the schema for the field.

File

src/Plugin/Field/LengthTrait.php, line 10

Class

LengthTrait

Namespace

Drupal\dimension\Plugin\Field

Code

public static function fields() : array {
  return [
    'length' => t('Length'),
  ];
}