本文整理汇总了PHP中Drupal\views\Plugin\views\display\DisplayPluginBase::defineOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP DisplayPluginBase::defineOptions方法的具体用法?PHP DisplayPluginBase::defineOptions怎么用?PHP DisplayPluginBase::defineOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\views\Plugin\views\display\DisplayPluginBase
的用法示例。
在下文中一共展示了DisplayPluginBase::defineOptions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['block_description'] = array('default' => '');
$options['block_category'] = array('default' => $this->t('Lists (Views)'));
$options['block_hide_empty'] = array('default' => FALSE);
$options['allow'] = array('contains' => array('items_per_page' => array('default' => 'items_per_page')));
return $options;
}
示例2: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['displays'] = array('default' => array());
$options['attachment_position'] = array('default' => 'before');
$options['inherit_arguments'] = array('default' => TRUE, 'bool' => TRUE);
$options['inherit_exposed_filters'] = array('default' => FALSE, 'bool' => TRUE);
$options['inherit_pager'] = array('default' => FALSE, 'bool' => TRUE);
$options['render_pager'] = array('default' => FALSE, 'bool' => TRUE);
return $options;
}
示例3: defineOptions
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::defineOptions().
*/
protected function defineOptions()
{
$options = parent::defineOptions();
// Force the style plugin to 'entity_reference_style' and the row plugin to
// 'fields'.
$options['style']['contains']['type'] = array('default' => 'entity_reference');
$options['defaults']['default']['style'] = FALSE;
$options['row']['contains']['type'] = array('default' => 'entity_reference');
$options['defaults']['default']['row'] = FALSE;
// Make sure the query is not cached.
$options['defaults']['default']['cache'] = FALSE;
// Set the display title to an empty string (not used in this display type).
$options['title']['default'] = '';
$options['defaults']['default']['title'] = FALSE;
return $options;
}
示例4: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['test_option'] = array('default' => '');
return $options;
}
示例5: defineOptions
/**
* Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['path'] = array('default' => '');
$options['route_name'] = array('default' => '');
return $options;
}