You are here

public static function FieldDiffBuilderBase::isApplicable in Diff 8

Returns if the plugin can be used for the provided field.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition: The field definition that should be checked.

Return value

bool TRUE if the plugin can be used, FALSE otherwise.

Overrides FieldDiffBuilderInterface::isApplicable

2 methods override FieldDiffBuilderBase::isApplicable()
TestHeavierTextPlugin::isApplicable in tests/modules/diff_test/src/Plugin/diff/Field/TestHeavierTextPlugin.php
Returns if the plugin can be used for the provided field.
TestLighterTextPlugin::isApplicable in tests/modules/diff_test/src/Plugin/diff/Field/TestLighterTextPlugin.php
Returns if the plugin can be used for the provided field.

File

src/FieldDiffBuilderBase.php, line 140

Class

FieldDiffBuilderBase
Base class for field diff builder plugins.

Namespace

Drupal\diff

Code

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