You are here

trait VolumeTrait in Dimension 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/VolumeTrait.php \Drupal\dimension\Plugin\Field\VolumeTrait
  2. 2.1.x src/Plugin/Field/VolumeTrait.php \Drupal\dimension\Plugin\Field\VolumeTrait

Hierarchy

4 files declare their use of VolumeTrait
Volume.php in src/Plugin/Field/FieldFormatter/Volume.php
Volume.php in src/Plugin/Field/FieldWidget/Volume.php
Volume.php in src/Plugin/Field/FieldType/Volume.php
VolumeComponents.php in src/Plugin/Field/FieldFormatter/VolumeComponents.php

File

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

Namespace

Drupal\dimension\Plugin\Field
View source
trait VolumeTrait {

  /**
   * {@inheritdoc}
   */
  public static function fields() : array {
    return [
      'length' => t('Length'),
      'width' => t('Width'),
      'height' => t('Height'),
    ];
  }

}

Members