Exemplo 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();
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('datetime_type' => 'datetime') + parent::defaultStorageSettings();
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('max_length' => 255, 'is_ascii' => FALSE, 'case_sensitive' => FALSE) + parent::defaultStorageSettings();
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings() {
   return array(
     'allowed_values' => array(),
     'allowed_values_function' => '',
   ) + parent::defaultStorageSettings();
 }
Exemplo 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();
 }
Exemplo n.º 7
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('comment_type' => '') + parent::defaultStorageSettings();
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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();
 }
Exemplo 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;
 }
Exemplo n.º 13
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('data_type' => 'varchar', 'data_length' => 32, 'data_size' => 'normal', 'data_precision' => 10, 'data_scale' => 2) + parent::defaultStorageSettings();
 }
Exemplo n.º 14
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array() + parent::defaultStorageSettings();
 }
Exemplo n.º 15
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('case_sensitive' => FALSE) + parent::defaultStorageSettings();
 }
Exemplo n.º 16
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('foreign_key_name' => 'shape') + parent::defaultStorageSettings();
 }
Exemplo n.º 17
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('max_length' => 255) + parent::defaultStorageSettings();
 }
Exemplo n.º 18
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('format' => '#HEXHEX') + parent::defaultStorageSettings();
 }
Exemplo n.º 19
0
 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('on_label' => t('On'), 'off_label' => t('Off')) + parent::defaultStorageSettings();
 }