public static function FormatterInterface::isApplicable in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FormatterInterface.php \Drupal\Core\Field\FormatterInterface::isApplicable()
- 9 core/lib/Drupal/Core/Field/FormatterInterface.php \Drupal\Core\Field\FormatterInterface::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.
1 method overrides FormatterInterface::isApplicable()
- FormatterBase::isApplicable in core/
lib/ Drupal/ Core/ Field/ FormatterBase.php - Returns if the formatter can be used for the provided field.
File
- core/
lib/ Drupal/ Core/ Field/ FormatterInterface.php, line 99
Class
- FormatterInterface
- Interface definition for field formatter plugins.
Namespace
Drupal\Core\FieldCode
public static function isApplicable(FieldDefinitionInterface $field_definition);