Guest User

Untitled

a guest
Jan 24th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. $query = Drupal::entityQuery('node');
  2. $group = $query->orConditionGroup()
  3. ->condition('content_a.field_one', 'uno')
  4. ->condition('contnet_a.field_two', 'dos');
  5.  
  6. $entity_ids = $query->condition('type', 'content_b')
  7. ->condition($group)
  8. ->execute();
Add Comment
Please, Sign In to add comment