You are here

protected function SettingsForm::getImagesStyles in bootstrap simple carousel 8

Return images styles.

Return value

array List of image styles

1 call to SettingsForm::getImagesStyles()
SettingsForm::buildForm in src/Form/SettingsForm.php
Form constructor.

File

src/Form/SettingsForm.php, line 143

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\bootstrap_simple_carousel\Form

Code

protected function getImagesStyles() {
  $styles = $this->imageStyleService
    ->loadMultiple();
  $options = [
    static::ORIGINAL_IMAGE_STYLE_ID => $this
      ->t('Original image'),
  ];
  foreach ($styles as $key => $value) {
    $options[$key] = $value
      ->get('label');
  }
  return $options;
}