當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FieldItemBase::defaultStorageSettings方法代碼示例

本文整理匯總了PHP中Drupal\Core\Field\FieldItemBase::defaultStorageSettings方法的典型用法代碼示例。如果您正苦於以下問題:PHP FieldItemBase::defaultStorageSettings方法的具體用法?PHP FieldItemBase::defaultStorageSettings怎麽用?PHP FieldItemBase::defaultStorageSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Drupal\Core\Field\FieldItemBase的用法示例。


在下文中一共展示了FieldItemBase::defaultStorageSettings方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: defaultStorageSettings

 /**
  * {@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();
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:10,代碼來源:DoubleField.php

示例2: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('datetime_type' => 'datetime') + parent::defaultStorageSettings();
 }
開發者ID:ddrozdik,項目名稱:dmaps,代碼行數:7,代碼來源:DateTimeItem.php

示例3: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('max_length' => 255, 'is_ascii' => FALSE, 'case_sensitive' => FALSE) + parent::defaultStorageSettings();
 }
開發者ID:novaFTL,項目名稱:quiz-drupal8,代碼行數:7,代碼來源:MultipleAnswerField.php

示例4: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings() {
   return array(
     'allowed_values' => array(),
     'allowed_values_function' => '',
   ) + parent::defaultStorageSettings();
 }
開發者ID:Greg-Boggs,項目名稱:electric-dev,代碼行數:9,代碼來源:ListItemBase.php

示例5: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('target_type' => \Drupal::moduleHandler()->moduleExists('node') ? 'node' : 'user', 'target_bundle' => NULL) + parent::defaultStorageSettings();
 }
開發者ID:brstde,項目名稱:gap1,代碼行數:7,代碼來源:EntityReferenceItem.php

示例6: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('mc_list_id' => '', 'double_opt_in' => 0, 'send_welcome' => 0) + parent::defaultStorageSettings();
 }
開發者ID:rafavergara,項目名稱:ddv8,代碼行數:7,代碼來源:MailchimpListsSubscription.php

示例7: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('comment_type' => '') + parent::defaultStorageSettings();
 }
開發者ID:nstielau,項目名稱:drops-8,代碼行數:7,代碼來源:CommentItem.php

示例8: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('unsigned' => FALSE) + parent::defaultStorageSettings();
 }
開發者ID:k-zafar,項目名稱:barney_river,代碼行數:7,代碼來源:WeightItem.php

示例9: defaultStorageSettings

 /**
  * {@inheritdoc}
  *
  * @DSG: Optional.
  */
 public static function defaultStorageSettings()
 {
     $settings = ['lorem' => 123];
     return $settings + parent::defaultStorageSettings();
 }
開發者ID:chi-teck,項目名稱:drupal-code-generator,代碼行數:10,代碼來源:_field_type.php

示例10: defaultStorageSettings

 /**
  * {@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();
 }
開發者ID:darrylri,項目名稱:protovbmwmo,代碼行數:8,代碼來源:NameItem.php

示例11: defaultStorageSettings

 /**
  * {@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();
 }
開發者ID:nstielau,項目名稱:drops-8,代碼行數:7,代碼來源:TestItem.php

示例12: defaultStorageSettings

 /**
  * {@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;
 }
開發者ID:dev981,項目名稱:gaptest,代碼行數:8,代碼來源:LanguageItem.php

示例13: 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();
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:7,代碼來源:ComputedFieldItem.php

示例14: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array() + parent::defaultStorageSettings();
 }
開發者ID:novaFTL,項目名稱:quiz-drupal8,代碼行數:7,代碼來源:TrueFalseFieldType.php

示例15: defaultStorageSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultStorageSettings()
 {
     return array('max_length' => 255) + parent::defaultStorageSettings();
 }
開發者ID:davidsoloman,項目名稱:drupalconsole.com,代碼行數:7,代碼來源:StringItem.php


注:本文中的Drupal\Core\Field\FieldItemBase::defaultStorageSettings方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。