You are here

trait AreaTrait in Dimension 8

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

Hierarchy

  • trait \Drupal\dimension\Plugin\Field\AreaTrait
3 files declare their use of AreaTrait
Area.php in src/Plugin/Field/FieldFormatter/Area.php
Area.php in src/Plugin/Field/FieldWidget/Area.php
Area.php in src/Plugin/Field/FieldType/Area.php

File

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

Namespace

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

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

}

Members