You are here

interface LinkIconManagerInterface in Link Icon 8

Interface for linkicon manager.

Hierarchy

Expanded class hierarchy of LinkIconManagerInterface

All classes that implement LinkIconManagerInterface

2 files declare their use of LinkIconManagerInterface
linkicon.module in ./linkicon.module
A link field formatter to create icon classes based on predefined titles.
LinkIconFormatter.php in src/Plugin/Field/FieldFormatter/LinkIconFormatter.php

File

src/LinkIconManagerInterface.php, line 8

Namespace

Drupal\linkicon
View source
interface LinkIconManagerInterface {

  /**
   * Play safe predefined option on forms, where DRUPAL_REQUIRED = 2.
   */
  const LINKICON_PREDEFINED = 5;

  /**
   * Returns available settings.
   *
   * @param string $setting_name
   *   The setting name.
   *
   * @return array
   *   An array of available settings.
   */
  public function getSetting($setting_name);

  /**
   * Returns extracted allowed title values.
   *
   * @param string $values
   *   The link title allowed values.
   * @param bool $is_tooltip
   *   If it is for tooltip title or regular link text.
   *
   * @return array
   *   An array of allowed title values.
   */
  public function extractAllowedValues($values, $is_tooltip = FALSE);

}

Members

Namesort descending Modifiers Type Description Overrides
LinkIconManagerInterface::extractAllowedValues public function Returns extracted allowed title values. 1
LinkIconManagerInterface::getSetting public function Returns available settings. 1
LinkIconManagerInterface::LINKICON_PREDEFINED constant Play safe predefined option on forms, where DRUPAL_REQUIRED = 2.