You are here

function linkicon in Link Icon 8

Provides a convenient shortcut for procedural hooks.

Return value

class The Linkicon manager class instance.

File

./linkicon.module, line 17
A link field formatter to create icon classes based on predefined titles.

Code

function linkicon() {
  static $manager;
  if (!isset($manager)) {
    $manager = \Drupal::service('linkicon.manager');
  }
  return $manager;
}