public static function LingotekTranslationStatusesFormatter::isApplicable in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.0.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.1.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.2.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.3.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.4.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.5.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.6.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 3.7.x src/Plugin/Field/FieldFormatter/LingotekTranslationStatusesFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekTranslationStatusesFormatter::isApplicable()
- 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\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return $field_definition
->getType() === 'lingotek_language_key_value';
}