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


PHP FieldItemBase::defaultFieldSettings方法代碼示例

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


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

示例1: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     foreach (['first', 'second'] as $subfield) {
         $settings[$subfield] = ['min' => '', 'max' => '', 'list' => FALSE, 'allowed_values' => [], 'required' => TRUE, 'on_label' => t('On'), 'off_label' => t('Off')];
     }
     return $settings + parent::defaultFieldSettings();
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:10,代碼來源:DoubleField.php

示例2: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('title' => DRUPAL_OPTIONAL, 'link_type' => LinkItemInterface::LINK_GENERIC) + parent::defaultFieldSettings();
 }
開發者ID:DrupalCamp-NYC,項目名稱:dcnyc16,代碼行數:7,代碼來源:LinkItem.php

示例3: defaultFieldSettings

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

示例4: defaultFieldSettings

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

示例5: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('min' => '', 'max' => '', 'prefix' => '', 'suffix' => '') + parent::defaultFieldSettings();
 }
開發者ID:aWEBoLabs,項目名稱:taxi,代碼行數:7,代碼來源:NumericItemBase.php

示例6: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return ['available_countries' => [], 'fields' => array_values(AddressField::getAll()), 'langcode_override' => ''] + parent::defaultFieldSettings();
 }
開發者ID:jokas,項目名稱:d8.dev,代碼行數:7,代碼來源:AddressItem.php

示例7: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('on_label' => t('On'), 'off_label' => t('Off')) + parent::defaultFieldSettings();
 }
開發者ID:nsp15,項目名稱:Drupal8,代碼行數:7,代碼來源:BooleanItem.php

示例8: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     $settings = array('component_css' => '', 'component_layout' => 'default', 'show_component_required_marker' => FALSE, 'credentials_inline' => FALSE, 'override_format' => 'default', 'field_type' => array('title' => 'select', 'given' => 'text', 'middle' => 'text', 'family' => 'text', 'generational' => 'select', 'credentials' => 'text'), 'size' => array('title' => 6, 'given' => 20, 'middle' => 20, 'family' => 20, 'generational' => 5, 'credentials' => 35), 'title_display' => array('title' => 'description', 'given' => 'description', 'middle' => 'description', 'family' => 'description', 'generational' => 'description', 'credentials' => 'description'), 'inline_css' => array('title' => '', 'given' => '', 'middle' => '', 'family' => '', 'generational' => '', 'credentials' => ''));
     return $settings + parent::defaultFieldSettings();
 }
開發者ID:darrylri,項目名稱:protovbmwmo,代碼行數:8,代碼來源:NameItem.php

示例9: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('handler' => 'default', 'handler_settings' => array()) + parent::defaultFieldSettings();
 }
開發者ID:318io,項目名稱:318-io,代碼行數:7,代碼來源:EntityReferenceItem.php

示例10: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('on_label' => new TranslatableMarkup('On'), 'off_label' => new TranslatableMarkup('Off')) + parent::defaultFieldSettings();
 }
開發者ID:ravibarnwal,項目名稱:laraitassociate.in,代碼行數:7,代碼來源:BooleanItem.php

示例11: defaultFieldSettings

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

示例12: defaultFieldSettings

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

示例13: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('title' => '', 'class' => '', 'height' => '', 'width' => '', 'frameborder' => '', 'scrolling' => '', 'transparency' => '', 'tokensupport' => '') + parent::defaultFieldSettings();
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:7,代碼來源:IframeItem.php

示例14: defaultFieldSettings

 /**
  * {@inheritdoc}
  */
 public static function defaultFieldSettings()
 {
     return array('computed_code' => '$value = \'\';', 'display_code' => '$display_output = $value;') + parent::defaultFieldSettings();
 }
開發者ID:justincletus,項目名稱:webdrupalpro,代碼行數:7,代碼來源:ComputedFieldItem.php

示例15: defaultFieldSettings

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


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