function FormatterBase::isApplicable
Same name in other branches
- 9 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()
- 11.x core/lib/Drupal/Core/Field/FormatterBase.php \Drupal\Core\Field\FormatterBase::isApplicable()
Overrides FormatterInterface::isApplicable
3 calls to FormatterBase::isApplicable()
- CommentPermalinkFormatter::isApplicable in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentPermalinkFormatter.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.
- OEmbedFormatter::isApplicable in core/
modules/ media/ src/ Plugin/ Field/ FieldFormatter/ OEmbedFormatter.php - Returns if the formatter can be used for the provided field.
12 methods override FormatterBase::isApplicable()
- AuthorFormatter::isApplicable in core/
modules/ user/ src/ Plugin/ Field/ FieldFormatter/ AuthorFormatter.php - Returns if the formatter can be used for the provided field.
- AuthorNameFormatter::isApplicable in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ AuthorNameFormatter.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.
- CommentPermalinkFormatter::isApplicable in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentPermalinkFormatter.php - Returns if the formatter can be used for the provided field.
- ContentModerationStateFormatter::isApplicable in core/
modules/ content_moderation/ src/ Plugin/ Field/ FieldFormatter/ ContentModerationStateFormatter.php - Returns if the formatter can be used for the provided field.
File
-
core/
lib/ Drupal/ Core/ Field/ FormatterBase.php, line 176
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.