You are here

public static function FormatterInterface::isApplicable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 104
Contains \Drupal\Core\Field\FormatterInterface.

Class

FormatterInterface
Interface definition for field formatter plugins.

Namespace

Drupal\Core\Field

Code

public static function isApplicable(FieldDefinitionInterface $field_definition);