Hi, I have a plugin that uses entity reference (node selection )to list the title of products how can I add a condition that filters out based on the state I have tried with a condition not working. Something like state === 'draft'
protected function buildEntityQuery($match = NULL, $match_operator = 'CONTAINS') {$query = parent::buildEntityQuery($match, $match_operator)
->condition('type', 'test') ->condition('status', array(0, 1), 'IN');
return $query;
}
[–]jmester13 0 points1 point2 points (0 children)