You are here

protected function InsertFileWidgetUtility::stylesListToOptions in Insert 8

Parameters

array $stylesList:

Return value

array

1 call to InsertFileWidgetUtility::stylesListToOptions()
InsertFileWidgetUtility::settingsForm in src/Utility/InsertFileWidgetUtility.php
1 method overrides InsertFileWidgetUtility::stylesListToOptions()
InsertImageWidgetUtility::stylesListToOptions in src/Utility/InsertImageWidgetUtility.php
@inheritdoc

File

src/Utility/InsertFileWidgetUtility.php, line 97

Class

InsertFileWidgetUtility

Namespace

Drupal\insert\Utility

Code

protected function stylesListToOptions($stylesList) {
  foreach ($stylesList as $styleName => $style) {
    $stylesList[$styleName] = $style['label'];
  }
  return $stylesList;
}