You are here

trait LengthTrait in Dimension 2.1.x

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

Hierarchy

3 files declare their use of LengthTrait
Length.php in src/Plugin/Field/FieldFormatter/Length.php
Length.php in src/Plugin/Field/FieldWidget/Length.php
Length.php in src/Plugin/Field/FieldType/Length.php

File

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

Namespace

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

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

}

Members