You are here

public function PanelsIPEPageController::handleUpdateLayoutRequest in Panels 8.4

Same name and namespace in other branches
  1. 8.3 panels_ipe/src/Controller/PanelsIPEPageController.php \Drupal\panels_ipe\Controller\PanelsIPEPageController::handleUpdateLayoutRequest()

Updates (PUT) an existing Layout in this Variant.

Parameters

string $panels_storage_type: The id of the storage plugin.

string $panels_storage_id: The id within the storage plugin for the requested Panels display.

\Symfony\Component\HttpFoundation\Request $request: The current request.

Return value

\Symfony\Component\HttpFoundation\JsonResponse

1 call to PanelsIPEPageController::handleUpdateLayoutRequest()
PanelsIPEPageController::handleCreateLayoutRequest in panels_ipe/src/Controller/PanelsIPEPageController.php
Creates (POST) a new Layout for this Variant.
1 string reference to 'PanelsIPEPageController::handleUpdateLayoutRequest'
panels_ipe.routing.yml in panels_ipe/panels_ipe.routing.yml
panels_ipe/panels_ipe.routing.yml

File

panels_ipe/src/Controller/PanelsIPEPageController.php, line 251

Class

PanelsIPEPageController
Contains all JSON endpoints required for Panels IPE + Page Manager.

Namespace

Drupal\panels_ipe\Controller

Code

public function handleUpdateLayoutRequest($panels_storage_type, $panels_storage_id, Request $request) {
  $panels_display = $this
    ->loadPanelsDisplay($panels_storage_type, $panels_storage_id);
  $this->updateLayoutRequestHandler
    ->handleRequest($panels_display, $request);
  return $this->updateLayoutRequestHandler
    ->getJsonResponse();
}