Length.php in Dimension 2.1.x
Same filename in this branch
Same filename and directory in other branches
File
src/Plugin/Field/FieldFormatter/Length.phpView source
<?php
namespace Drupal\dimension\Plugin\Field\FieldFormatter;
use Drupal\dimension\Plugin\Field\LengthTrait;
/**
* Plugin implementation of the 'length_field_formatter' formatter.
*
* @FieldFormatter(
* id = "length_field_formatter",
* label = @Translation("Dimension: Length"),
* field_types = {
* "length_field_type"
* }
* )
*/
class Length extends Dimension {
use LengthTrait;
}