Length.php in Dimension 2.0.x
File
src/Plugin/Field/FieldType/Length.php
View source
<?php
namespace Drupal\dimension\Plugin\Field\FieldType;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\dimension\Plugin\Field\LengthTrait;
class Length extends Dimension {
use LengthTrait;
public static function defaultStorageSettings() : array {
return self::_defaultStorageSettings(self::fields());
}
public static function defaultFieldSettings() : array {
return self::_defaultFieldSettings(self::fields());
}
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
return self::_propertyDefinitions(self::fields());
}
public static function schema(FieldStorageDefinitionInterface $field_definition) : array {
return self::_schema($field_definition, self::fields());
}
}
Classes
Name |
Description |
Length |
Plugin implementation of the 'length_field_type' field type. |