function FormatterInterface::isApplicable
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/FormatterInterface.php \Drupal\Core\Field\FormatterInterface::isApplicable()
- 10 core/lib/Drupal/Core/Field/FormatterInterface.php \Drupal\Core\Field\FormatterInterface::isApplicable()
- 11.x 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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.