You are here

public static function DoubleField::subfieldTypes in Double Field 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldType/DoubleField.php \Drupal\double_field\Plugin\Field\FieldType\DoubleField::subfieldTypes()

Returns available subfield storage types.

5 calls to DoubleField::subfieldTypes()
Base::settingsForm in src/Plugin/Field/FieldFormatter/Base.php
Returns a form to configure settings for the formatter.
Base::settingsSummary in src/Plugin/Field/FieldFormatter/Base.php
Returns a short summary for the current formatter settings.
DoubleField::fieldSettingsForm in src/Plugin/Field/FieldType/DoubleField.php
Returns a form for the field-level settings.
DoubleField::propertyDefinitions in src/Plugin/Field/FieldType/DoubleField.php
Defines field item properties.
DoubleField::storageSettingsForm in src/Plugin/Field/FieldType/DoubleField.php
Returns a form for the storage-level settings.

File

src/Plugin/Field/FieldType/DoubleField.php, line 577

Class

DoubleField
Plugin implementation of the 'double_field' field type.

Namespace

Drupal\double_field\Plugin\Field\FieldType

Code

public static function subfieldTypes() : array {
  return [
    'boolean' => t('Boolean'),
    'string' => t('Text'),
    'text' => t('Text (long)'),
    'integer' => t('Integer'),
    'float' => t('Float'),
    'numeric' => t('Decimal'),
    'email' => t('Email'),
    'telephone' => t('Telephone'),
    'datetime_iso8601' => t('Date'),
    // We only allow external links. So this should be URL from the user side.
    'uri' => t('Url'),
  ];
}