public function loadContentTypeByRemoteId($remoteId) { $spiContentType = $this->contentTypeHandler->loadByRemoteId($remoteId); return $this->contentTypeDomainMapper->buildContentTypeDomainObject($spiContentType, array_map(function ($id) { return $this->contentTypeHandler->loadGroup($id); }, $spiContentType->groupIds)); }