EntityQuery does not return values

I am trying to get some entities using the “entity.query” service. What am I doing: in my module (file “mymodule.module”) I execute: function mymodule_preprocess_page(&$variables) { $query = \Drupal::entityQuery(‘node’); $query->condition(‘type’, ‘article’); $nids = $query->execute(); } What I get: when I browse a page under the name of an authorized user – the request returns the results…

Details