function _insert_get_style_classes in Insert 8.2
Returns any CSS classes deriving from the style definitions.
Parameters
array $styles:
Return value
array
1 call to _insert_get_style_classes()
- _insert_field_process in ./
insert.module - Form API callback: Processes a file field element.
File
- ./
insert.module, line 354
Code
function _insert_get_style_classes(array $styles) {
$styleClasses = [];
foreach ($styles as $styleName => $style) {
if ($style instanceof ImageStyle) {
$styleClasses[] = 'image-' . $styleName;
}
}
return $styleClasses;
}