You are here

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

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

File

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

Class

AreaTrait

Namespace

Drupal\dimension\Plugin\Field

Code

public static function fields() : array {
  return [
    'width' => t('Width'),
    'height' => t('Height'),
  ];
}