You are here

public function FindInterface::synonymsFindProcessCondition in Synonyms 2.0.x

Supportive method to process $condition argument in synonymsFind().

This method will swap FindInterface::COLUMN_* to real column names in $condition for you, so you do not have to worry about internal processing of $condition object.

Parameters

\Drupal\Core\Database\Query\ConditionInterface $condition: Condition to be processed.

string $synonym_column: Actual name of the column where synonyms are kept in text.

string $entity_id_column: Actual name of the column where entity_ids are kept.

3 calls to FindInterface::synonymsFindProcessCondition()
BaseField::synonymsFind in src/Plugin/Synonyms/Provider/BaseField.php
Look up entities by their synonyms within a behavior implementation.
EntityReferenceField::synonymsFind in src/Plugin/Synonyms/Provider/EntityReferenceField.php
Look up entities by their synonyms within a behavior implementation.
Field::synonymsFind in src/Plugin/Synonyms/Provider/Field.php
Look up entities by their synonyms within a behavior implementation.

File

src/ProviderInterface/FindInterface.php, line 40

Class

FindInterface
Interface to look up entities by synonyms they have.

Namespace

Drupal\synonyms\ProviderInterface

Code

public function synonymsFindProcessCondition(ConditionInterface $condition, $synonym_column, $entity_id_column);