Answers for "drupal 8 query entity condition"

PHP
0

drupal 8 entity query

$ids = Drupal::entityQuery('entityType')
  ->condition('status', 1)
  ->condition('conditionKey', 'ConditionValue')
  ->execute();
Posted by: Guest on September-12-2021
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

Code answers related to "drupal 8 query entity condition"

Browse Popular Code Answers by Language