本文整理匯總了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;
}