本文整理汇总了PHP中Drupal\views\Plugin\views\field\FieldPluginBase::defineOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP FieldPluginBase::defineOptions方法的具体用法?PHP FieldPluginBase::defineOptions怎么用?PHP FieldPluginBase::defineOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\views\Plugin\views\field\FieldPluginBase
的用法示例。
在下文中一共展示了FieldPluginBase::defineOptions方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['text'] = array('default' => '');
$options['link_to_entity'] = array('default' => FALSE);
return $options;
}
示例2: defineOptions
/**
* Define the available options
* @return array
*/
protected function defineOptions() {
$options = parent::defineOptions();
$options['link_photo'] = array('default' => '');
$options['image_style'] = array('default' => '');
return $options;
}
示例3: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['link_to_user'] = array('default' => FALSE, 'bool' => TRUE);
$options['format'] = array('default' => 'first_last');
return $options;
}
示例4: defineOptions
/**
* {@inheritdoc}
*/
public function defineOptions()
{
$options = parent::defineOptions();
$options['fields'] = array('default' => array());
$options['destination'] = array('default' => TRUE);
return $options;
}
示例5: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['data_module'] = array('default' => '');
$options['data_name'] = array('default' => '');
return $options;
}
示例6: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['fields'] = array('default' => array());
$options['destination'] = array('default' => 1);
return $options;
}
示例7: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['link_to_comment'] = array('default' => TRUE, 'bool' => TRUE);
$options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
return $options;
}
示例8: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['format'] = array('default' => 'unserialized');
$options['key'] = array('default' => '');
return $options;
}
示例9: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['link_to_taxonomy'] = array('default' => FALSE, 'bool' => TRUE);
$options['convert_spaces'] = array('default' => FALSE, 'bool' => TRUE);
return $options;
}
示例10: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['type'] = array('default' => 'separator');
$options['separator'] = array('default' => ', ');
return $options;
}
示例11: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['text'] = array('default' => '', 'translatable' => TRUE);
$options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
return $options;
}
示例12: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['show_link'] = array('default' => FALSE);
$options['show_link_options']['contains'] = array('link_path' => array('default' => ''), 'link_text' => array('default' => ''), 'link_class' => array('default' => ''), 'link_title' => array('default' => ''), 'link_rel' => array('default' => ''), 'link_fragment' => array('default' => ''), 'link_query' => array('default' => ''), 'link_target' => array('default' => ''));
return $options;
}
示例13: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['date_format'] = array('default' => 'small');
$options['custom_date_format'] = array('default' => '');
$options['timezone'] = array('default' => '');
return $options;
}
示例14: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
// Override the alter text option to always alter the text.
$options['alter']['contains']['alter_text'] = array('default' => TRUE, 'bool' => TRUE);
$options['hide_alter_empty'] = array('default' => FALSE, 'bool' => TRUE);
return $options;
}
示例15: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['view'] = ['default' => ''];
$options['display'] = ['default' => 'default'];
$options['arguments'] = ['default' => ''];
return $options;
}