public function DibaCarousel::defaultConfiguration in Diba carousel slider 8
Overrides BlockPluginTrait::defaultConfiguration
1 call to DibaCarousel::defaultConfiguration()
- DibaCarousel::blockForm in src/
Plugin/ Block/ DibaCarousel.php
File
- src/
Plugin/ Block/ DibaCarousel.php, line 113
Class
- DibaCarousel
- Provides a Diba carousel Block.
Namespace
Drupal\diba_carousel\Plugin\BlockCode
public function defaultConfiguration() {
return [
'label_display' => FALSE,
'entity_selected' => 'node',
'content_types' => [],
'publishing_options' => [
'status' => 1,
],
'skip_content_without_image' => FALSE,
'image' => 'field_image',
'title' => 'title',
'image_style' => '',
'image_class' => 'img-fluid',
'url' => 'canonical',
'description' => 'body',
'description_allow_html' => FALSE,
'description_see_more_link' => FALSE,
'description_truncate' => 300,
'order_field' => 'created',
'order_direction' => 'DESC',
'limit' => 5,
'filter_by_field' => '',
'filter_by_field_operator' => '=',
'filter_by_field_value' => '',
'carousel_style' => 'default',
'show_indicators' => TRUE,
'show_controls' => TRUE,
'more_link' => '',
'more_link_text' => 'See more',
'items_by_slide' => 1,
'data_interval' => 5000,
];
}