entityTypeManager ->getStorage('node') ->getQuery(); $query->condition('status', NodeInterface::PUBLISHED); $query->condition('type', 'daily_email'); $query->accessCheck(TRUE); $result = $query->execute(); // TODO: this returns a list of node IDs. Load and return the nodes. return $result; } }