当前位置: 首页>>代码示例>>PHP>>正文


PHP StylePluginBase::defineOptions方法代码示例

本文整理汇总了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;
 }
开发者ID:rafavergara,项目名称:ddv8,代码行数:31,代码来源:Jssor.php

示例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;
 }
开发者ID:nearlyheadlessarvie,项目名称:bloomingline,代码行数:30,代码来源:BxSliderStyle.php

示例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'));
 }
开发者ID:pulibrary,项目名称:recap,代码行数:10,代码来源:Slideshow.php

示例4: defineOptions

 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['optionset'] = array('default' => 'default');
     $options['captionfield'] = array('default' => '');
     $options['id'] = array('default' => '');
     return $options;
 }
开发者ID:r-daneelolivaw,项目名称:chalk,代码行数:11,代码来源:FlexSlider.php

示例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;
 }
开发者ID:karens,项目名称:vertical_timeline,代码行数:11,代码来源:VerticalTimelineStyle.php

示例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;
 }
开发者ID:aWEBoLabs,项目名称:taxi,代码行数:11,代码来源:HtmlList.php

示例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;
 }
开发者ID:davidsoloman,项目名称:durham-civil-rights-map,代码行数:11,代码来源:GeoJson.php

示例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;
 }
开发者ID:nearlyheadlessarvie,项目名称:bloomingline,代码行数:11,代码来源:InvAccordionStyle.php

示例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;
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:9,代码来源:DefaultSummary.php

示例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;
 }
开发者ID:tabvn,项目名称:owl,代码行数:12,代码来源:Owl.php

示例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;
 }
开发者ID:pedrocones,项目名称:geolocation,代码行数:12,代码来源:CommonMap.php

示例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;
 }
开发者ID:angelamaunz,项目名称:pccdemo,代码行数:15,代码来源:JuiceboxDisplayStyle.php

示例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;
 }
开发者ID:nstielau,项目名称:drops-8,代码行数:15,代码来源:Grid.php

示例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;
 }
开发者ID:HakS,项目名称:drupal8_training,代码行数:16,代码来源:Mapping.php

示例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;
 }
开发者ID:nearlyheadlessarvie,项目名称:bloomingline,代码行数:18,代码来源:InvGridStyle.php


注:本文中的Drupal\views\Plugin\views\style\StylePluginBase::defineOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。