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