You are here

trait LengthTrait in Dimension 8

Same name and namespace in other branches
  1. 2.1.x 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 array(
      'length' => t('Length'),
    );
  }

}

Members