You are here

class LingotekDefaultFilterProvider in Lingotek Translation 3.2.x

Same name and namespace in other branches
  1. 8.2 src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  2. 4.0.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  3. 3.0.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  4. 3.1.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  5. 3.3.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  6. 3.4.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  7. 3.5.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  8. 3.6.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  9. 3.7.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider
  10. 3.8.x src/LingotekDefaultFilterProvider.php \Drupal\lingotek\LingotekDefaultFilterProvider

Filter provider returning the default filters.

@package Drupal\lingotek

Hierarchy

Expanded class hierarchy of LingotekDefaultFilterProvider

File

src/LingotekDefaultFilterProvider.php, line 10

Namespace

Drupal\lingotek
View source
class LingotekDefaultFilterProvider implements LingotekFilterProviderInterface {

  /**
   * Filter 'okf_json@with-html-subfilter.fprm'.
   */
  const FPRM_ID = '4f91482b-5aa1-4a4a-a43f-712af7b39625';

  /**
   * Filter 'okf_html@drupal8-subfilter.fprm'.
   */
  const FPRM_SUBFILTER_ID = '0e79f34d-f27b-4a0c-880e-cd9181a5d265';

  /**
   * {@inheritdoc}
   */
  public function getFilter() {
    return static::FPRM_ID;
  }

  /**
   * {@inheritdoc}
   */
  public function setFilter($filter) {

    // Do nothing. Filter is static.
  }

  /**
   * {@inheritdoc}
   */
  public function getSubfilter() {
    return static::FPRM_SUBFILTER_ID;
  }

  /**
   * {@inheritdoc}
   */
  public function setSubfilter($filter) {

    // Do nothing. Filter is static.
  }

}

Members