You are here

trait VolumeTrait in Dimension 8

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

Hierarchy

3 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

File

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

Namespace

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

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

}

Members