function FormatterBase::isApplicable
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::isApplicable()
- 10 core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::isApplicable()
- 8.9.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::isApplicable()
7 methods override FormatterBase::isApplicable()
- AggregatorTitleFormatter::isApplicable in core/
modules/ aggregator/ src/ Plugin/ Field/ FieldFormatter/ AggregatorTitleFormatter.php - Returns if the formatter can be used for the provided field.
- BaseFieldFileFormatterBase::isApplicable in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ BaseFieldFileFormatterBase.php - Returns if the formatter can be used for the provided field.
- FileMediaFormatterBase::isApplicable in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileMediaFormatterBase.php - Returns if the formatter can be used for the provided field.
- FileSize::isApplicable in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileSize.php - Returns if the formatter can be used for the provided field.
- MediaThumbnailFormatter::isApplicable in core/
modules/ media/ src/ Plugin/ Field/ FieldFormatter/ MediaThumbnailFormatter.php - Returns if the formatter can be used for the provided field.
File
-
core/
lib/ Drupal/ Core/ Field/ FormatterBase.php, line 166
Class
- FormatterBase
- Base class for 'Field formatter' plugin implementations.
Namespace
Drupal\Core\FieldCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
// By default, formatters are available for all fields.
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.