You are here

private function FontawesomeIconpicker::getFaIconSizeLabel in Font Awesome Iconpicker 8

Helper function to get default icon size.

1 call to FontawesomeIconpicker::getFaIconSizeLabel()
FontawesomeIconpicker::settingsSummary in src/Plugin/Field/FieldFormatter/FontawesomeIconpicker.php
Returns a short summary for the current formatter settings.

File

src/Plugin/Field/FieldFormatter/FontawesomeIconpicker.php, line 115

Class

FontawesomeIconpicker
Plugin implementation of the 'fontawesome_iconpicker' formatter.

Namespace

Drupal\fontawesome_iconpicker\Plugin\Field\FieldFormatter

Code

private function getFaIconSizeLabel($key) {
  $available_sizes = $this
    ->getFaIconSizes();
  return isset($available_sizes[$key]) ? $available_sizes[$key] : NULL;
}