本文整理汇总了PHP中Drupal\Core\Field\FormatterBase::defaultSettings方法的典型用法代码示例。如果您正苦于以下问题:PHP FormatterBase::defaultSettings方法的具体用法?PHP FormatterBase::defaultSettings怎么用?PHP FormatterBase::defaultSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\Core\Field\FormatterBase
的用法示例。
在下文中一共展示了FormatterBase::defaultSettings方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defaultSettings
public static function defaultSettings() {
return array(
'keep_pdfjs' => '',
'width' => '',
'height' => '',
) + parent::defaultSettings();
}
示例2: defaultSettings
public static function defaultSettings() {
return array(
'scale' => 1,
'width' => '',
'height' => '',
) + parent::defaultSettings();
}
示例3: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
$settings = [];
foreach (['first', 'second'] as $subfield) {
$settings[$subfield] = ['hidden' => FALSE, 'prefix' => '', 'suffix' => ''];
}
return $settings + parent::defaultSettings();
}
示例4: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
return array(
'trim_length' => '600',
'trim_type' => 'chars',
'trim_suffix' => '',
'more_link' => 0,
'more_class' => 'more-link',
'more_text' => 'More',
'summary_handler' => 'full',
'trim_options' => array(),
) + parent::defaultSettings();
}
示例5: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('trim_length' => '80', 'url_only' => '', 'url_plain' => '', 'rel' => '', 'target' => '') + parent::defaultSettings();
}
示例6: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('format_type' => 'medium') + parent::defaultSettings();
}
示例7: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('future_format' => '@interval hence', 'past_format' => '@interval ago', 'granularity' => 2) + parent::defaultSettings();
}
示例8: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('pager_id' => 0) + parent::defaultSettings();
}
示例9: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('test_formatter_setting_multiple' => 'dummy test string', 'alter' => FALSE) + parent::defaultSettings();
}
示例10: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
$options = parent::defaultSettings();
$options['link_to_entity'] = FALSE;
return $options;
}
示例11: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('stripe_checkout_description' => '', 'stripe_checkout_currency' => '') + parent::defaultSettings();
}
示例12: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('separated_display' => '') + parent::defaultSettings();
}
示例13: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return array('share_services' => 'facebook,twitter', 'buttons_size' => 'addthis_16x16_style', 'counter_orientation' => 'horizontal', 'extra_css' => '') + parent::defaultSettings();
}
示例14: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings()
{
return ['combine' => TRUE] + parent::defaultSettings();
}
示例15: defaultSettings
/**
* {@inheritdoc}
*/
public static function defaultSettings() {
$options = parent::defaultSettings();
$options['render_view'] = TRUE;
return $options;
}