You are here

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

InsertImageWidgetUtility

Namespace

Drupal\insert\Utility

Code

public function getStyleLabel($style) {
  return is_array($style) ? $style['label'] : $style
    ->label();
}