当前位置: 首页>>代码示例>>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;未经允许,请勿转载。