本文整理汇总了PHP中Drupal\views\Plugin\views\style\StylePluginBase::defineOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP StylePluginBase::defineOptions方法的具体用法?PHP StylePluginBase::defineOptions怎么用?PHP StylePluginBase::defineOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\views\Plugin\views\style\StylePluginBase
的用法示例。
在下文中一共展示了StylePluginBase::defineOptions方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['slide_duration'] = array('default' => 500);
$options['slide_spacing'] = array('default' => 0);
$options['drag_orientation'] = array('default' => 1);
$options['key_navigation'] = array('default' => TRUE);
$options['autoplay'] = array('default' => TRUE);
$options['autoplayinterval'] = array('default' => 3000);
$options['autoplaysteps'] = array('default' => 1);
$options['pauseonhover'] = array('default' => 1);
$options['arrownavigator'] = array('default' => FALSE);
$options['bulletnavigator'] = array('default' => FALSE);
$options['chancetoshow'] = array('default' => 0);
$options['arrowskin'] = array('default' => 1);
$options['bulletskin'] = array('default' => 1);
$options['autocenter'] = array('default' => 2);
$options['spacingx'] = array('default' => 0);
$options['spacingy'] = array('default' => 0);
$options['orientation'] = array('default' => 1);
$options['steps'] = array('default' => 1);
$options['rows'] = array('default' => 1);
$options['lanes'] = array('default' => 1);
$options['transition'] = array('default' => 'transition0000');
$options['action_mode'] = array('default' => 1);
$options['scale'] = array('default' => TRUE);
return $options;
}
示例2: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['mode'] = array('default' => 'horizontal');
$options['speed'] = array('default' => 500);
$options['touchEnabled'] = array('default' => 1);
$options['auto'] = array('default' => 0);
$options['pause'] = array('default' => 4000);
$options['infiniteloop'] = array('default' => 1);
$options['slidemargin'] = array('default' => 0);
$options['startslide'] = array('default' => 0);
$options['randomstart'] = array('default' => 0);
$options['pager'] = array('default' => 1);
$options['controls'] = array('default' => 1);
$options['nexttext'] = array('default' => '');
$options['prevtext'] = array('default' => '');
$options['autoControls'] = array('default' => 0);
// Carousel options
$options['moveslides'] = array('default' => 0);
$options['lg_items'] = array('default' => 4);
$options['md_items'] = array('default' => 3);
$options['sm_items'] = array('default' => 2);
$options['xs_items'] = array('default' => 1);
$options['ticker'] = array('default' => 0);
$options['tickerHover'] = array('default' => 0);
return $options;
}
示例3: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['row_class_custom'] = array('default' => '');
$options['row_class_default'] = array('default' => TRUE);
return array_merge($options, \Drupal::moduleHandler()->invokeAll('views_slideshow_option_definition'));
}
示例4: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['optionset'] = array('default' => 'default');
$options['captionfield'] = array('default' => '');
$options['id'] = array('default' => '');
return $options;
}
示例5: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['date_field'] = array('default' => '');
$options['group_heading'] = array('default' => '');
$options['group_heading_format'] = array('default' => '');
return $options;
}
示例6: defineOptions
/**
* Set default options
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['type'] = array('default' => 'ul');
$options['class'] = array('default' => '');
$options['wrapper_class'] = array('default' => 'item-list');
return $options;
}
示例7: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['data_source'] = array('contains' => array('value' => array('default' => 'asc'), 'latitude' => array('default' => 0), 'longitude' => array('default' => 0), 'geofield' => array('default' => 0), 'wkt' => array('default' => 0), 'name_field' => array('default' => 0), 'description_field' => array('default' => 0)));
$options['attributes'] = array('default' => NULL, 'translatable' => FALSE);
$options['jsonp_prefix'] = array('default' => NULL, 'translatable' => FALSE);
return $options;
}
示例8: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['title_field'] = array('default' => array());
$options['accordion_filter'] = array('default' => 0);
$options['accordion_filter_vocabulary'] = array('default' => 'select');
return $options;
}
示例9: defineOptions
protected function defineOptions()
{
$options = parent::defineOptions();
$options['base_path'] = array('default' => '');
$options['count'] = array('default' => TRUE, 'bool' => TRUE);
$options['override'] = array('default' => FALSE, 'bool' => TRUE);
$options['items_per_page'] = array('default' => 25);
return $options;
}
示例10: defineOptions
/**
* Set default options
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$settings = _owl_default_settings();
foreach ($settings as $k => $v) {
$options[$k] = array('default' => $v);
}
return $options;
}
示例11: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['geolocation_field'] = ['default' => ''];
$options['title_field'] = ['default' => ''];
$options['centre'] = ['default' => 'first_row'];
$options['centre_fixed_values'] = ['default' => ['latitude' => 0, 'longitude' => 0]];
return $options;
}
示例12: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$library = $this->juicebox->getLibrary();
$base_settings = $this->juicebox->confBaseOptions();
// Structure the base settings in the "default" format that views wants.
foreach ($base_settings as $setting => $value) {
$base_settings_default[$setting] = array('default' => $value);
}
$options = array_merge($base_settings_default, array('image_field' => array('default' => ''), 'image_field_style' => array('default' => !empty($library['version']) && !in_array('juicebox_multisize_image_style', $library['disallowed_conf']) ? 'juicebox_multisize' : 'juicebox_medium'), 'thumb_field' => array('default' => ''), 'thumb_field_style' => array('default' => 'juicebox_square_thumb'), 'title_field' => array('default' => ''), 'caption_field' => array('default' => ''), 'show_title' => array('default' => 0)));
return $options;
}
示例13: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['columns'] = array('default' => '4');
$options['automatic_width'] = array('default' => TRUE);
$options['alignment'] = array('default' => 'horizontal');
$options['col_class_custom'] = array('default' => '');
$options['col_class_default'] = array('default' => TRUE);
$options['row_class_custom'] = array('default' => '');
$options['row_class_default'] = array('default' => TRUE);
return $options;
}
示例14: defineOptions
/**
* Overrides Drupal\views\Plugin\views\style\StylePluginBase::defineOptions().
*/
protected function defineOptions()
{
$options = parent::defineOptions();
// Parse the mapping and add a default for each.
foreach ($this->defineMapping() as $key => $value) {
$default = !empty($value['#multiple']) ? array() : '';
$options['mapping']['contains'][$key] = array('default' => isset($value['#default_value']) ? $value['#default_value'] : $default);
if (!empty($value['#toggle'])) {
$options['mapping']['contains']["toggle_{$key}"] = array('default' => FALSE);
}
}
return $options;
}
示例15: defineOptions
/**
* {@inheritdoc}
*/
protected function defineOptions()
{
$options = parent::defineOptions();
$options['grid_style'] = array('default' => 'classic');
$options['grid_cols_lg'] = array('default' => 4);
$options['grid_cols_md'] = array('default' => 3);
$options['grid_cols_sm'] = array('default' => 2);
$options['grid_cols_xs'] = array('default' => 1);
$options['grid_margin'] = array('default' => 30);
$options['grid_filter'] = array('default' => 0);
$options['grid_ratio'] = array('default' => 1);
$options['grid_filter_vocabulary'] = array('default' => 'select');
$options['masonry_background'] = array('default' => '');
return $options;
}