You are here

AreaTrait.php in Dimension 2.1.x

Same filename and directory in other branches
  1. 8 src/Plugin/Field/AreaTrait.php
  2. 2.0.x src/Plugin/Field/AreaTrait.php

File

src/Plugin/Field/AreaTrait.php
View source
<?php

namespace Drupal\dimension\Plugin\Field;

trait AreaTrait {

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

}

Traits

Namesort descending Description
AreaTrait