protected function FieldSlideshow::getPagerTypes in Field Slideshow 8.3
Helper function to generate available plugins.
Return value
array Array of plugins.
1 call to FieldSlideshow::getPagerTypes()
- FieldSlideshow::settingsForm in src/
Plugin/ Field/ FieldFormatter/ FieldSlideshow.php - Settings form.
File
- src/
Plugin/ Field/ FieldFormatter/ FieldSlideshow.php, line 428
Class
- FieldSlideshow
- Plugin implementation of the 'slideshow' formatter.
Namespace
Drupal\field_slideshow\Plugin\Field\FieldFormatterCode
protected function getPagerTypes() {
$options = $this->pagerManager
->getDefinitions();
$pagers = [];
foreach ($options as $option) {
$pagers[$option['id']] = $option['label'];
}
return $pagers;
}