query = $query; } //findPageBySlug public function getBySlug(string $slug): ?PageInterface { $query = $this->query->create(); $query ->filterBySlug($slug); return $query->findOne(); } }