You are here

public static function MobileNumberItem::defaultStorageSettings in Mobile Number 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/MobileNumberItem.php \Drupal\mobile_number\Plugin\Field\FieldType\MobileNumberItem::defaultStorageSettings()

Defines the storage-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultStorageSettings

File

src/Plugin/Field/FieldType/MobileNumberItem.php, line 33

Class

MobileNumberItem
Plugin implementation of the 'mobile_number' field type.

Namespace

Drupal\mobile_number\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'unique' => MobileNumberUtilInterface::MOBILE_NUMBER_UNIQUE_NO,
  ] + parent::defaultStorageSettings();
}