function StringItem::defaultStorageSettings
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php \Drupal\Core\Field\Plugin\Field\FieldType\StringItem::defaultStorageSettings()
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php \Drupal\Core\Field\Plugin\Field\FieldType\StringItem::defaultStorageSettings()
- 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php \Drupal\Core\Field\Plugin\Field\FieldType\StringItem::defaultStorageSettings()
Overrides StringItemBase::defaultStorageSettings
2 calls to StringItem::defaultStorageSettings()
- UriItem::defaultStorageSettings in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ UriItem.php - Defines the storage-level settings for this plugin.
- UuidItem::defaultStorageSettings in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ UuidItem.php - Defines the storage-level settings for this plugin.
2 methods override StringItem::defaultStorageSettings()
- UriItem::defaultStorageSettings in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ UriItem.php - Defines the storage-level settings for this plugin.
- UuidItem::defaultStorageSettings in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ UuidItem.php - Defines the storage-level settings for this plugin.
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ StringItem.php, line 33
Class
- StringItem
- Defines the 'string' entity field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
return [
'max_length' => 255,
'is_ascii' => FALSE,
] + parent::defaultStorageSettings();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.