You are here

LinkIconManagerInterface.php in Link Icon 8

Namespace

Drupal\linkicon

File

src/LinkIconManagerInterface.php
View source
<?php

namespace Drupal\linkicon;


/**
 * Interface for linkicon manager.
 */
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);

}

Interfaces

Namesort descending Description
LinkIconManagerInterface Interface for linkicon manager.