interface LingotekFilterManagerInterface in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8.2 src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 4.0.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.0.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.1.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.2.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.3.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.4.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.5.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.6.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
- 3.7.x src/LingotekFilterManagerInterface.php \Drupal\lingotek\LingotekFilterManagerInterface
Service for managing Lingotek Filters.
@package Drupal\lingotek
Hierarchy
- interface \Drupal\lingotek\LingotekFilterManagerInterface
Expanded class hierarchy of LingotekFilterManagerInterface
All classes that implement LingotekFilterManagerInterface
4 files declare their use of LingotekFilterManagerInterface
- LingotekProfileFormBase.php in src/
Form/ LingotekProfileFormBase.php - LingotekSettingsTabAccountForm.php in src/
Form/ LingotekSettingsTabAccountForm.php - LingotekSettingsTabAccountFormTest.php in tests/
src/ Unit/ Form/ LingotekSettingsTabAccountFormTest.php - LingotekUnitTest.php in tests/
src/ Unit/ LingotekUnitTest.php
File
- src/
LingotekFilterManagerInterface.php, line 10
Namespace
Drupal\lingotekView source
interface LingotekFilterManagerInterface {
/**
* Get all the locally available filters.
*
* @return array
* Keyed array with filters (id => label)
*/
public function getLocallyAvailableFilters();
/**
* Get the default filter ID.
*
* @return string
* ID of the default filter.
*/
public function getDefaultFilter();
/**
* Get the default subfilter ID.
*
* @return string
* ID of the default subfilter.
*/
public function getDefaultSubfilter();
/**
* Get the default filter label.
*
* @return string
* ID of the default filter.
*/
public function getDefaultFilterLabel();
/**
* Get the default filter label.
*
* @return string
* ID of the default filter.
*/
public function getDefaultSubfilterLabel();
/**
* Gets the filter that should be applied.
*
* Given filter provider can take precedence, or the settings default will be
* applied.
*
* @param \Drupal\lingotek\LingotekFilterProviderInterface|null $profile
* A filter provider.
*
* @return string
* The filter ID.
*/
public function getFilterId(LingotekFilterProviderInterface $profile = NULL);
/**
* Gets the subfilter that should be applied.
*
* Given filter provider can take precedence, or the settings default will be
* applied.
*
* @param \Drupal\lingotek\LingotekFilterProviderInterface|null $profile
* A filter provider.
*
* @return string
* The filter ID.
*/
public function getSubfilterId(LingotekFilterProviderInterface $profile = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LingotekFilterManagerInterface:: |
public | function | Get the default filter ID. | 1 |
LingotekFilterManagerInterface:: |
public | function | Get the default filter label. | 1 |
LingotekFilterManagerInterface:: |
public | function | Get the default subfilter ID. | 1 |
LingotekFilterManagerInterface:: |
public | function | Get the default filter label. | 1 |
LingotekFilterManagerInterface:: |
public | function | Gets the filter that should be applied. | 1 |
LingotekFilterManagerInterface:: |
public | function | Get all the locally available filters. | 1 |
LingotekFilterManagerInterface:: |
public | function | Gets the subfilter that should be applied. | 1 |