trait AreaTrait in Dimension 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/Field/AreaTrait.php \Drupal\dimension\Plugin\Field\AreaTrait
- 2.0.x src/Plugin/Field/AreaTrait.php \Drupal\dimension\Plugin\Field\AreaTrait
Hierarchy
- trait \Drupal\dimension\Plugin\Field\AreaTrait
4 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 - AreaComponents.php in src/
Plugin/ Field/ FieldFormatter/ AreaComponents.php
File
- src/
Plugin/ Field/ AreaTrait.php, line 5
Namespace
Drupal\dimension\Plugin\FieldView source
trait AreaTrait {
/**
* {@inheritdoc}
*/
public static function fields() : array {
return [
'width' => t('Width'),
'height' => t('Height'),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AreaTrait:: |
public static | function |