function DialogRenderer::getDialogOptions
Same name in other branches
- 10 core/lib/Drupal/Core/Render/MainContent/DialogRenderer.php \Drupal\Core\Render\MainContent\DialogRenderer::getDialogOptions()
Returns the dialog options from request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The HTTP request.
Return value
array The dialog options used for OpenDialogCommand.
2 calls to DialogRenderer::getDialogOptions()
- DialogRenderer::renderResponse in core/
lib/ Drupal/ Core/ Render/ MainContent/ DialogRenderer.php - ModalRenderer::renderResponse in core/
lib/ Drupal/ Core/ Render/ MainContent/ ModalRenderer.php
File
-
core/
lib/ Drupal/ Core/ Render/ MainContent/ DialogRenderer.php, line 111
Class
- DialogRenderer
- Default main content renderer for dialog requests.
Namespace
Drupal\Core\Render\MainContentCode
protected function getDialogOptions(Request $request) : array {
if ($request->getMethod() === 'GET') {
return $request->query
->all('dialogOptions');
}
return $request->request
->all('dialogOptions');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.