本文整理汇总了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();
}
示例2: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('title' => DRUPAL_OPTIONAL, 'link_type' => LinkItemInterface::LINK_GENERIC) + parent::defaultFieldSettings();
}
示例3: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('handler' => 'default:' . (\Drupal::moduleHandler()->moduleExists('node') ? 'node' : 'user'), 'handler_settings' => array()) + parent::defaultFieldSettings();
}
示例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();
}
示例5: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('min' => '', 'max' => '', 'prefix' => '', 'suffix' => '') + parent::defaultFieldSettings();
}
示例6: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return ['available_countries' => [], 'fields' => array_values(AddressField::getAll()), 'langcode_override' => ''] + parent::defaultFieldSettings();
}
示例7: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('on_label' => t('On'), 'off_label' => t('Off')) + parent::defaultFieldSettings();
}
示例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();
}
示例9: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('handler' => 'default', 'handler_settings' => array()) + parent::defaultFieldSettings();
}
示例10: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('on_label' => new TranslatableMarkup('On'), 'off_label' => new TranslatableMarkup('Off')) + parent::defaultFieldSettings();
}
示例11: defaultFieldSettings
/**
* {@inheritdoc}
*
* @DSG: Optional.
*/
public static function defaultFieldSettings()
{
$settings = ['ipsum' => 'Bla bla bla'];
return $settings + parent::defaultFieldSettings();
}
示例12: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('test_field_setting' => 'dummy test string') + parent::defaultFieldSettings();
}
示例13: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('title' => '', 'class' => '', 'height' => '', 'width' => '', 'frameborder' => '', 'scrolling' => '', 'transparency' => '', 'tokensupport' => '') + parent::defaultFieldSettings();
}
示例14: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
return array('computed_code' => '$value = \'\';', 'display_code' => '$display_output = $value;') + parent::defaultFieldSettings();
}
示例15: defaultFieldSettings
/**
* {@inheritdoc}
*/
public static function defaultFieldSettings()
{
$settings = array('range' => 20) + parent::defaultFieldSettings();
return $settings;
}