class PropertyValue implements DoctrineFilterInterface (View source)

Filter nodes having the given property and a matching value.

Properties

protected string $propertyName
protected string $propertyValue

Methods

void
setPropertyName(string $propertyName)

Sets the property name to be checked.

void
setPropertyValue(string $propertyValue)

Sets the property value to be checked against.

array
getFilterExpressions(Query $baseQuery)

Filters for nodes having the property and value requested.

Details

void setPropertyName(string $propertyName)

Sets the property name to be checked.

Parameters

string $propertyName

Return Value

void

void setPropertyValue(string $propertyValue)

Sets the property value to be checked against.

Parameters

string $propertyValue

Return Value

void

array getFilterExpressions(Query $baseQuery)

Filters for nodes having the property and value requested.

Parameters

Query $baseQuery

Return Value

array

Exceptions

InvalidQueryException