You are here

public static function VolumeTrait::fields in Dimension 8

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

File

src/Plugin/Field/VolumeTrait.php, line 11

Class

VolumeTrait

Namespace

Drupal\dimension\Plugin\Field

Code

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