public static function InternationalPhone::schema in International Phone Field 8
Field type schema definition.
Inside this method we defines the database schema used to store data for our field type.
Here there is a list of allowed column types: https://goo.gl/YY3G7s
Overrides FieldItemInterface::schema
File
- src/
Plugin/ Field/ FieldType/ InternationalPhone.php, line 49
Class
- InternationalPhone
- Plugin implementation of the 'Internation Phone' field type.
Namespace
Drupal\international_phone\Plugin\Field\FieldTypeCode
public static function schema(StorageDefinition $storage) {
return [
'columns' => [
'value' => [
'type' => 'char',
'length' => 255,
'not null' => FALSE,
],
],
'indexes' => [
'value' => [
'value',
],
],
];
}