You are here

private function FontawesomeIconpicker::getFaIconSizes in Font Awesome Iconpicker 8

Helper function to get list of supported sizes in fontawesome.

2 calls to FontawesomeIconpicker::getFaIconSizes()
FontawesomeIconpicker::getFaIconSizeLabel in src/Plugin/Field/FieldFormatter/FontawesomeIconpicker.php
Helper function to get default icon size.
FontawesomeIconpicker::settingsForm in src/Plugin/Field/FieldFormatter/FontawesomeIconpicker.php
Returns a form to configure settings for the formatter.

File

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

Class

FontawesomeIconpicker
Plugin implementation of the 'fontawesome_iconpicker' formatter.

Namespace

Drupal\fontawesome_iconpicker\Plugin\Field\FieldFormatter

Code

private function getFaIconSizes() {
  return [
    'fa-1x' => '1x',
    'fa-2x' => '2x',
    'fa-3x' => '3x',
    'fa-4x' => '4x',
    'fa-5x' => '5x',
  ];
}