Issue #2975439 by aron.beal, martin107: ContextualController property incorrectly named
parent
6e90b69768
commit
59fe5e752d
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue