You are here

public static function FieldComparatorDefault::isApplicable in Conflict 8.2

Returns if the field comparator 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 field comparator can be used, FALSE otherwise.

Overrides FieldComparatorInterface::isApplicable

1 method overrides FieldComparatorDefault::isApplicable()
FieldComparatorParagraphReference::isApplicable in modules/conflict_paragraphs/src/Plugin/Conflict/FieldComparator/FieldComparatorParagraphReference.php
Returns if the field comparator can be used for the provided field.

File

src/Plugin/Conflict/FieldComparator/FieldComparatorDefault.php, line 55

Class

FieldComparatorDefault
Default field comparator plugin implementation covering all fields.

Namespace

Drupal\conflict\Plugin\Conflict\FieldComparator

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {

  // By default, field comparators are available for all fields.
  return TRUE;
}