public function InsertImageWidgetUtility::getStyleLabel in Insert 8
@inheritdoc
Parameters
array|ImageStyle $style:
Return value
string
Overrides InsertFileWidgetUtility::getStyleLabel
File
- src/
Utility/ InsertImageWidgetUtility.php, line 169
Class
Namespace
Drupal\insert\UtilityCode
public function getStyleLabel($style) {
return is_array($style) ? $style['label'] : $style
->label();
}