@param Request $request
@param string  $identifier
@param string  $pagedef

@return Response
553111
public function shopArticleQuickShop(Request $request, $identifier, $pagedef)
    {
        $cmsident = $identifier;
        $queryParameter = $request->query->all();
        if (0 === count($queryParameter)) {
            $queryParameter = null;
        }

        $aResponse = array(
            'activeShopArticle' => null,
            'activeShopCategory' => null,
            'redirectURL' => null,
            'redirectPermanent' => false,
            'noMatch' => false,
            'pagedef' => $pagedef,
            'queryParameter' => $queryParameter,
        );

        $article = $this->createArticleFromIdentificationToken($cmsident);

        if (null === $article) {
            $aResponse['noMatch'] = true;

            return $this->processArticleResponse($aResponse, null);
        }

        if (false === $article->AllowDetailviewInShop()) {
            $aResponse['noMatch'] = true;

            return $this->processArticleResponse($aResponse, null);
        }

        $variantArticle = TdbShopVariantDisplayHandler::GetArticleMatchingCurrentSelection($article);
        if (null !== $variantArticle) {
            $aResponse['activeShopArticle'] = $variantArticle;
        } else {
            $aResponse['activeShopArticle'] = $article;
        }

        /** @var PortalDomainServiceInterface $portalDomainService */
        $portalDomainService = \ChameleonSystem\CoreBundle\ServiceLocator::get('chameleon_system_core.portal_domain_service');
        $activePortal = $portalDomainService->getActivePortal();
        $aResponse['pagedef'] = $activePortal->GetSystemPageId('quickshop');

        return $this->processArticleResponse($aResponse, $request, null);
    }
1005522
public function read(string $identifier): ?ClientInterface
    {
        try {
            return $this->readResource($identifier);
        } catch (RepositoryException $exception) {
            $message = 'Reading client failed.';
            throw new RepositoryException($message, 0, $exception);
        }
    }
955775
public function processRequest(
        PageIndexerRequest $request,
        PageIndexerResponse $response
    ) {
        $this->request = $request;
        $this->response = $response;
        $this->logger = GeneralUtility::makeInstance(SolrLogManager::class, /** @scrutinizer ignore-type */ __CLASS__);

        if ($request->getParameter('loggingEnabled')) {
            $this->logger->log(
                SolrLogManager::INFO,
                'Page indexer request received',
                [
                    'request' => (array)$request,
                ]
            );
        }
    }
69295
public function process(Request $request, DelegateInterface $frame)
    {
        $response = $frame->next($request);

        $cleared = $this->responseCookieJar->getClearedCookies();
        foreach ($cleared as $cookie) {
            $response->headers->clearCookie($cookie, DIR_REL . '/');
        }

        $cookies = $this->responseCookieJar->getCookies();
        foreach ($cookies as $cookie) {
            $response->headers->setCookie($cookie);
        }

        return $response;
    }
3442
public function findPageIdsOfExistingMountPagesByMountIdentifier(string $identifier) : array
    {
        $queryBuilder = $this->getQueryBuilder();
        $resultSet = $queryBuilder
            ->select('item_uid')
            ->add('select', $queryBuilder->expr()->count('*', 'queueItemCount'), true)
            ->from($this->table)
            ->where(
                $queryBuilder->expr()->eq('item_type', $queryBuilder->createNamedParameter('pages')),
                $queryBuilder->expr()->eq('pages_mountidentifier', $queryBuilder->createNamedParameter($identifier))
            )
            ->groupBy('item_uid')
            ->execute();

        $mountedPagesIdsWithQueueItems = [];
        while ($record = $resultSet->fetch()) {
            if ($record['queueItemCount'] > 0) {
                $mountedPagesIdsWithQueueItems[] = $record['item_uid'];
            }
        }

        return $mountedPagesIdsWithQueueItems;
    }
1348525
public function handleRequest(Request $request, Page &$page)
    {
        $page->setData([
            "link" => $request->request->get("vfou_cmsbundle_page")["link"],
            "code" => $request->request->get("vfou_cmsbundle_page")["code"]
        ]);
    }
1279417
private function getOrGenerateIdentifier(Request $request, $header)
    {
        if (null === ($identifier = $this->getIdentifier($request, $header))) {
            $identifier = $this->identifierGenerator->generate();
        }

        return $identifier;
    }
453789
public function getMemberForm($identifier, $instance, $member, $td, $part) {
		$editMemberParams = $this->getEditMemberParams_ ( $part );

		$form = $this->jquery->semantic ()->dataForm ( $identifier, $instance );
		$form->on ( "dblclick", "", true, true );
		$form->setProperty ( "onsubmit", "return false;" );
		$form->addClass ( "_memberForm" );
		$className = \get_class ( $instance );
		$fields = [ "id",$member ];
		$relFields = OrmUtils::getFieldsInRelations_ ( $className );
		$hasRelations = $this->setFormFields_ ( $fields, $relFields );
		$form->setFields ( $fields );
		$fieldTypes = OrmUtils::getFieldTypes ( $className );
		$form->fieldAsHidden ( 0 );
		$this->setMemberFormFieldsComponent ( $form, $fieldTypes );
		if ($hasRelations) {
			$this->relationMembersInForm ( $form, $instance, $className, $fields, $relFields );
		}
		$form->setCaptions ( [ "","" ] );
		$form->onGenerateField ( function (HtmlFormField $f, $nb) use ($identifier, $editMemberParams) {
			if ($nb == 1) {
				$f->setSize ( "mini" );
				if ($editMemberParams->getHasButtons ()) {
					$btO = HtmlButton::icon ( "btO", "check" )->addClass ( "green mini compact" )->onClick ( "\$('#" . $identifier . "').trigger('validate');", true, true );
					$btC = HtmlButton::icon ( "btC", "close" )->addClass ( "mini compact" )->onClick ( "\$('#" . $identifier . "').trigger('endEdit');" );
					$f->wrap ( "<div class='fields' style='margin:0;'>", [ $btO,$btC,"</div>" ] );
					if (! $editMemberParams->getHasPopup ()) {
						$f->setWidth ( 16 )->setProperty ( "style", "padding-left:0;" );
					}
				}
				$f->on ( "keydown", "if(event.which == 13) {\$('#" . $identifier . "').trigger('validate');}if(event.keyCode===27) {\$('#" . $identifier . "').trigger('endEdit');}" );
				$f->onClick ( "return false;", true, true );
			} else {
				$f->setProperty ( "style", "display: none;" );
			}
		} );
		$form->setSubmitParams ( $this->controller->_getBaseRoute () . "/updateMember/" . $member . "/" . $editMemberParams->getUpdateCallback (), "#" . $td, [ "attr" => "","hasLoader" => false,"jsCallback" => "$(self).remove();","jqueryDone" => "html" ] );
		if ($editMemberParams->getHasPopup ()) {
			$endEdit = "\$('#" . $identifier . "').html();\$('.popup').hide();\$('#" . $td . "').popup('destroy');";
			$validate = $endEdit;
		} else {
			$endEdit = "let td=\$('#" . $td . "');td.html(td.data('originalText'));";
			$validate = "";
		}
		$form->on ( "endEdit", $endEdit );
		$form->on ( "validate", "\$('#" . $identifier . "').form('submit');" . $validate );
		$this->jquery->execAtLast ( "$('form').find('input[type=text],textarea,select').filter(':visible:first').focus();" );
		return $form;
	}
1100104
public function prepareDisplay(Request $request, Page $page, &$options = [])
    {
        if(!is_array($page->getData())){
            $page->setData([
                "link"=>$page->getData(),
                "code"=>302
            ]);
        }
        if(is_numeric($page->getData()['link'])){
            $url = $this->router->generate("page", ["route" => $this->em->getRepository(Page::class)->findOneById($page->getData()['link'])->getLink()]);
        } else {
            $url = $page->getData()['link'];
        }
        return new RedirectResponse($url, $page->getData()["code"]);
    }
1201340
public function update(PageRequest $request, Page $page)
    {
        $page->update($request->all());
        return new PageResource($page);
    }
1283598
public function listAction(Request $request): Response
    {
        $page = $request->query->get('page') ?? 1;

        $pagerfanta = new Pagerfanta(
            new ArrayAdapter($this->languageService->loadLanguages())
        );

        $pagerfanta->setMaxPerPage($this->defaultPaginationLimit);
        $pagerfanta->setCurrentPage(min($page, $pagerfanta->getNbPages()));

        /** @var Language[] $languageList */
        $languageList = $pagerfanta->getCurrentPageResults();

        $deleteLanguagesForm = $this->formFactory->deleteLanguages(
            new LanguagesDeleteData($this->getLanguagesNumbers($languageList))
        );

        return $this->render('@ezdesign/admin/language/list.html.twig', [
            'pager' => $pagerfanta,
            'form_languages_delete' => $deleteLanguagesForm->createView(),
            /* @deprecated since version 2.2, to be removed in 3.0. Use 'can_administrate' instead. */
            'canEdit' => $this->isGranted(new Attribute('content', 'translations')),
            /* @deprecated since version 2.2, to be removed in 3.0. Use 'can_administrate' instead. */
            'canAssign' => $this->isGranted(new Attribute('content', 'translations')),
            'can_administrate' => $this->isGranted(new Attribute('content', 'translations')),
        ]);
    }
675770
public function htmlModal($identifier, $header="", $content="", $actions=array()) {
		return $this->addHtmlComponent(new HtmlModal($identifier, $header,$content,$actions));
	}
690792
private function convertToFieldDefintionObject($identifier, $fieldDefinition)
    {
        if ($fieldDefinition instanceof FieldDefinitionObject) {
            return $fieldDefinition;
        } else {
            return new FieldDefinitionObject($identifier, $this, $fieldDefinition);
        }
    }
961722
public function loadSectionDataByIdentifier($identifier)
    {
        try {
            return $this->innerGateway->loadSectionDataByIdentifier($identifier);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
1304802
public function editPageSettingsAction(Request $request, $id)
	{
		/** @var PageInterface $page */
		$page = $this->admin->getObject($id);

		$layoutBlocks = $page->getLayoutBlock();

		$form = $this->admin->getForm();
		$form->setData($page);

		$form->handleRequest($request);

		$response = new Response();

		if($form->isSubmitted()){
			if($form->isValid()){
				$page->setStatus(PageInterface::STATUS_DRAFT);
				$page->setUpdatedAt();
				$page->setLayoutBlock($layoutBlocks);
				$this->admin->update($page);

				return $this->getAjaxEditResponse($form, $page);

			}
			$response->setStatusCode(422);
		}
		$view = $form->createView();
		$this->setFormTheme($view, $this->admin->getFormTheme());

		return $this->renderWithExtraParams(
			'@NetworkingInitCms/PageAdmin/page_settings_edit.html.twig',
			[
				'form' => $view,
                'object' => $page,
			],
			$response
		);
	}
1256361
public function cgetAction(Request $request, $id)
    {
        try {
            if ($request->get('flat') == 'true') {
                $list = $this->getListRepresentation($request, $id);
            } else {
                $list = new CollectionRepresentation(
                    $this->getManager()->findAllByAttributeIdAndLocale($this->getLocale($request), $id),
                    self::$entityKey
                );
            }
            $view = $this->view($list, 200);
        } catch (AttributeNotFoundException $exc) {
            $exception = new EntityNotFoundException($exc->getEntityName(), $exc->getId());
            $view = $this->view($exception->toArray(), 404);
        }

        return $this->handleView($view);
    }
809992
public function getAction(Request $request, $id)
    {
        $document = $this->getModel()->getSerialised($id, $request);

        $response = $this->getResponse()
            ->setStatusCode(Response::HTTP_OK)
            ->setContent($document);

        return $response;
    }