You are here

public static function DynamicEntityReferenceEntityFormatter::isApplicable in Dynamic Entity Reference 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/DynamicEntityReferenceEntityFormatter.php \Drupal\dynamic_entity_reference\Plugin\Field\FieldFormatter\DynamicEntityReferenceEntityFormatter::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.

Overrides EntityReferenceEntityFormatter::isApplicable

File

src/Plugin/Field/FieldFormatter/DynamicEntityReferenceEntityFormatter.php, line 30

Class

DynamicEntityReferenceEntityFormatter
Plugin implementation of the 'rendered entity' formatter.

Namespace

Drupal\dynamic_entity_reference\Plugin\Field\FieldFormatter

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {
  return TRUE;
}