本文整理汇总了PHP中Drupal\Core\Field\WidgetBase::defaultSettings方法的典型用法代码示例。如果您正苦于以下问题:PHP WidgetBase::defaultSettings方法的具体用法?PHP WidgetBase::defaultSettings怎么用?PHP WidgetBase::defaultSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\Core\Field\WidgetBase
的用法示例。
在下文中一共展示了WidgetBase::defaultSettings方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
return [
'autocomplete_threshold' => 7,
'autocomplete_size' => 60,
'autocomplete_placeholder' => '',
] + parent::defaultSettings();
}
示例2: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
foreach (['first', 'second'] as $subfield) {
$settings[$subfield] = ['type' => 'textfield', 'prefix' => '', 'suffix' => '', 'size' => 10, 'placeholder' => '', 'label' => t('Ok'), 'cols' => 10, 'rows' => 5];
}
$settings['inline'] = FALSE;
return $settings + parent::defaultSettings();
}
示例3: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('default_colors' => '
#AC725E,#D06B64,#F83A22,#FA573C,#FF7537,#FFAD46
#42D692,#16A765,#7BD148,#B3DC6C,#FBE983
#92E1C0,#9FE1E7,#9FC6E7,#4986E7,#9A9CFF
#B99AFF,#C2C2C2,#CABDBF,#CCA6AC,#F691B2
#CD74E6,#A47AE2') + parent::defaultSettings();
}
示例4: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('destination_field' => "", 'placeholder' => "", 'geocoder_engine' => "") + parent::defaultSettings();
}
示例5: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('entity_browser' => NULL, 'open' => FALSE, 'field_widget_display' => NULL, 'field_widget_edit' => TRUE, 'field_widget_remove' => TRUE, 'field_widget_display_settings' => []) + parent::defaultSettings();
}
示例6: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
$settings = array('format' => array('name' => 'name')) + parent::defaultSettings();
return $settings;
}
示例7: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return ['default_country' => NULL] + parent::defaultSettings();
}
示例8: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array() + parent::defaultSettings();
}
示例9: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('placeholder' => '') + parent::defaultSettings();
}
示例10: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('html5_geolocation' => FALSE) + parent::defaultSettings();
}
示例11: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('placeholder_color' => '', 'placeholder_opacity' => '') + parent::defaultSettings();
}
示例12: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('increment' => '15', 'date_order' => 'YMD', 'time_type' => '24') + parent::defaultSettings();
}
示例13: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('field' => '', 'provider_plugins' => array(), 'dumper_plugin' => 'wkt', 'delta_handling' => 'default') + parent::defaultSettings();
}
示例14: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('view_mode' => 'Default') + parent::defaultSettings();
}
示例15: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('cell_width' => 10, 'cell_height' => 10, 'cell_margin' => 1, 'box_width' => 115, 'box_height' => 20, 'columns' => 16) + parent::defaultSettings();
}