public static function InsertUtility::stylesListToOptions in Insert 8.2
Parameters
array $stylesList:
Return value
array
2 calls to InsertUtility::stylesListToOptions()
- insert_colorbox_insert_config_form in modules/
insert_colorbox/ insert_colorbox.module - Implements hook_insert_config_form().
- _insert_settings_form in ./
insert.module
File
- src/
Utility/ InsertUtility.php, line 78
Class
Namespace
Drupal\insert\UtilityCode
public static function stylesListToOptions(array $stylesList) {
foreach ($stylesList as $styleName => $style) {
/* @var ImageStyle|array $style */
$stylesList[$styleName] = is_array($style) ? $style['label'] : $style
->label();
}
return $stylesList;
}