You are here

public static function LingotekTranslationStatusesFormatter::isApplicable in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  2. 3.0.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  3. 3.1.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  4. 3.2.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  5. 3.3.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  6. 3.4.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  7. 3.5.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  8. 3.6.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  9. 3.7.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
  10. 3.8.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()

Returns if the formatter can be used for the provided field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition that should be checked.

Return value

bool TRUE if the formatter can be used, FALSE otherwise.

Overrides FormatterBase::isApplicable

File

src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php, line 86

Class

LingotekTranslationStatusesFormatter
Plugin implementation of the 'lingotek_translation_statuses' formatter.

Namespace

Drupal\lingotek\Plugin\Field\FieldFormatter

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {
  return $field_definition
    ->getType() === 'lingotek_language_key_value';
}