You are here

public static function FormatterInterface::isApplicable in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FormatterInterface.php \Drupal\Core\Field\FormatterInterface::isApplicable()
  2. 10 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\Field

Code

public static function isApplicable(FieldDefinitionInterface $field_definition);