protected function EntityReferenceImportProcessor::addQueryFilter in YAML Content 8.2
Apply property filter to the entity query.
This method may be overridden to provide further processing or mapping of property values as needed for filters.
Parameters
string $entity_type: The machine name for the entity type being queried.
string $property: A property being filtered. All property definitions are compatible with those described in QueryInterface::condition().
mixed $value: The value filtered in this condition.
See also
\Drupal\Core\Entity\Query\QueryInterface::condition()
File
- src/
Plugin/ YamlContent/ EntityReferenceImportProcessor.php, line 145
Class
- EntityReferenceImportProcessor
- Import processor to support entity queries and references.
Namespace
Drupal\yaml_content\Plugin\YamlContentCode
protected function addQueryFilter($entity_type, $property, $value) {
$this->query
->condition($property, $value);
}