getDatabaseRows($result['tcaSchemata']->get('pages'), (int)$result['effectivePid']); return $result; } /** * Retrieve the requested overlay row from the database */ protected function getDatabaseRows(TcaSchema $pageSchema, int $pid): array { $workspaceId = $this->context->getPropertyFromAspect('workspace', 'id'); $queryBuilder = $this->connectionPool->getQueryBuilderForTable('pages'); $queryBuilder->getRestrictions() ->removeAll() ->add(GeneralUtility::makeInstance(DeletedRestriction::class)) ->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, (int)$workspaceId)); $rows = $queryBuilder ->select('*') ->from('pages') ->where($queryBuilder->expr()->eq( $pageSchema->getCapability(TcaSchemaCapability::Language)->getTranslationOriginPointerField()->getName(), $queryBuilder->createNamedParameter($pid, Connection::PARAM_INT) )) ->executeQuery() ->fetchAllAssociative(); return $rows; } }