I have 2 contents who contains a field 'field-test'. The 'field-test' contains an array of taxonomies (its a simple multiple values taxonomy field) :
Node A :
field_test : '1','2','3,'4' // where 1,2,3 and 4 are tids
Node B :
field_test : '4','5','6,'7'
With the entityQuery api, I can get nodes who contains the taxonomy '4' OR '5' with :
$test = \Drupal::entityQuery('node') ->condition('field_test', array('4','5'),'IN') ->execute(); // get nodes A and B in an array But I want get only the node B (only the node who contains taxonomies 4 AND 5) How can I do that ?
Thank you :)