linkicon-8.x-1.x-dev/src/LinkIconManagerInterface.php
src/LinkIconManagerInterface.php
<?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): array;
/**
* Implements hook_library_info_build().
*/
public function libraryInfoBuild(): array;
/**
* Returns simplified settings.
*
* @param array $settings
* The settings.
*
* @return array
* An array of simplified settings.
*/
public function simplifySettings(array $settings): array;
}
