Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     foreach (['first', 'second'] as $subfield) {
         $settings['storage'][$subfield] = ['type' => 'string', 'maxlength' => 255, 'precision' => 10, 'scale' => 2];
     }
     return $settings + parent::defaultStorageSettings();
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('datetime_type' => 'datetime') + parent::defaultStorageSettings();
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('max_length' => 255, 'is_ascii' => FALSE, 'case_sensitive' => FALSE) + parent::defaultStorageSettings();
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings() {
   return array(
     'allowed_values' => array(),
     'allowed_values_function' => '',
   ) + parent::defaultStorageSettings();
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('target_type' => \Drupal::moduleHandler()->moduleExists('node') ? 'node' : 'user', 'target_bundle' => NULL) + parent::defaultStorageSettings();
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('mc_list_id' => '', 'double_opt_in' => 0, 'send_welcome' => 0) + parent::defaultStorageSettings();
 }
Esempio n. 7
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('comment_type' => '') + parent::defaultStorageSettings();
 }
Esempio n. 8
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('unsigned' => FALSE) + parent::defaultStorageSettings();
 }
 /**
  * {@inheritdoc}
  *
  * @DSG: Optional.
  */
 public static function defaultStorageSettings()
 {
     $settings = ['lorem' => 123];
     return $settings + parent::defaultStorageSettings();
 }
Esempio n. 10
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     $settings = array('components' => array('title' => TRUE, 'given' => TRUE, 'middle' => TRUE, 'family' => TRUE, 'generational' => TRUE, 'credentials' => TRUE), 'minimum_components' => array('title' => FALSE, 'given' => TRUE, 'middle' => FALSE, 'family' => TRUE, 'generational' => FALSE, 'credentials' => FALSE), 'allow_family_or_given' => FALSE, 'labels' => array('title' => t('Title'), 'given' => t('Given'), 'middle' => t('Middle name(s)'), 'family' => t('Family'), 'generational' => t('Generational'), 'credentials' => t('Credentials')), 'max_length' => array('title' => 31, 'given' => 63, 'middle' => 127, 'family' => 63, 'generational' => 15, 'credentials' => 255), 'autocomplete_source' => array('title' => array('title'), 'given' => array(), 'middle' => array(), 'family' => array(), 'generational' => array('generation'), 'credentials' => array()), 'autocomplete_separator' => array('title' => ' ', 'given' => ' -', 'middle' => ' -', 'family' => ' -', 'generational' => ' ', 'credentials' => ', '), 'title_options' => array(t('-- --'), t('Mr.'), t('Mrs.'), t('Miss'), t('Ms.'), t('Dr.'), t('Prof.')), 'generational_options' => array(t('-- --'), t('Jr.'), t('Sr.'), t('I'), t('II'), t('III'), t('IV'), t('V'), t('VI'), t('VII'), t('VIII'), t('IX'), t('X')), 'sort_options' => array('title' => FALSE));
     return $settings + parent::defaultStorageSettings();
 }
Esempio n. 11
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('test_field_storage_setting' => 'dummy test string', 'changeable' => 'a changeable field storage setting', 'unchangeable' => 'an unchangeable field storage setting') + parent::defaultStorageSettings();
 }
Esempio n. 12
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     $defaultStorageSettings = array('maxlength' => self::LANGUAGEFIELD_LANGCODE_MAXLENGTH, 'language_range' => array(self::LANGUAGEFIELD_LANGUAGES_PREDEFINED => self::LANGUAGEFIELD_LANGUAGES_PREDEFINED), 'included_languages' => array(), 'excluded_languages' => array(), 'groups' => '') + parent::defaultStorageSettings();
     return $defaultStorageSettings;
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('data_type' => 'varchar', 'data_length' => 32, 'data_size' => 'normal', 'data_precision' => 10, 'data_scale' => 2) + parent::defaultStorageSettings();
 }
Esempio n. 14
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array() + parent::defaultStorageSettings();
 }
Esempio n. 15
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('case_sensitive' => FALSE) + parent::defaultStorageSettings();
 }
Esempio n. 16
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('foreign_key_name' => 'shape') + parent::defaultStorageSettings();
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('max_length' => 255) + parent::defaultStorageSettings();
 }
Esempio n. 18
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('format' => '#HEXHEX') + parent::defaultStorageSettings();
 }
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('on_label' => t('On'), 'off_label' => t('Off')) + parent::defaultStorageSettings();
 }