You are here

public function FontAwesomeManagerInterface::determinePrefix in Font Awesome Icons 8.2

Helper function returns the prefix for an icon based on icon type.

Parameters

array $styles: An array of valid styles for the icon.

string $default: The value to assign here if it's not a brand icon.

Return value

string A valid prefix for this icon.

1 method overrides FontAwesomeManagerInterface::determinePrefix()
FontAwesomeManager::determinePrefix in src/FontAwesomeManager.php
Helper function returns the prefix for an icon based on icon type.

File

src/FontAwesomeManagerInterface.php, line 56

Class

FontAwesomeManagerInterface
Icon Manager Service Inteface for Font Awesome.

Namespace

Drupal\fontawesome

Code

public function determinePrefix(array $styles, $default = 'fas');