You are here

private function DibaCarousel::getImageStyles in Diba carousel slider 8

Get image styles list.

1 call to DibaCarousel::getImageStyles()
DibaCarousel::blockForm in src/Plugin/Block/DibaCarousel.php

File

src/Plugin/Block/DibaCarousel.php, line 625

Class

DibaCarousel
Provides a Diba carousel Block.

Namespace

Drupal\diba_carousel\Plugin\Block

Code

private function getImageStyles() {
  $styles = $this->entityTypeManager
    ->getStorage('image_style')
    ->loadMultiple();
  $options = [];
  foreach ($styles as $key => $style) {
    $options[$key] = $key;
  }
  return $options;
}