Answers for "drupal 8 database query or condition"

0

drupal 8 database query or condition

$orGroup = $query->orConditionGroup()
  ->condition('promoted', 1)
  ->condition('uid', [2,4,7,22], 'IN');
  
// Add the group to the query.
$query->condition($orGroup);
Posted by: Guest on October-03-2020

Browse Popular Code Answers by Language