Issue #2975439 by aron.beal, martin107: ContextualController property incorrectly named

merge-requests/1654/head
Alex Pott 2018-05-30 11:42:26 +02:00
parent 6e90b69768
commit 59fe5e752d
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 10 additions and 3 deletions

View File

@ -16,12 +16,13 @@ class ContextualController implements ContainerInjectionInterface {
/**
* The renderer.
*
* @var \Drupal\Core\Render\RendererInterface
*/
protected $render;
protected $renderer;
/**
* Constructors a new ContextualController
* Constructors a new ContextualController.
*
* @param \Drupal\Core\Render\RendererInterface $renderer
* The renderer.
@ -45,10 +46,16 @@ class ContextualController implements ContainerInjectionInterface {
* Given a list of contextual links IDs, render them. Hence this must be
* robust to handle arbitrary input.
*
* @see contextual_preprocess()
* @param \Symfony\Component\HttpFoundation\Request $request
* The Symfony request object.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
* The JSON response.
*
* @throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
* Thrown when the request contains no ids.
*
* @see contextual_preprocess()
*/
public function render(Request $request) {
$ids = $request->request->get('ids');