Drupal 8  8.0.2
AjaxTestController Class Reference

Public Member Functions

 render ()
 order ()
 renderError (Request $request)
 dialog ()
 dialogClose ()

Static Public Member Functions

static dialogContents ()

Detailed Description

Provides content for dialog tests.

Member Function Documentation

dialog ( )

Returns a render array of form elements and links for dialog.

References Drupal\formBuilder(), and Url\fromRoute().

Here is the call graph for this function:

dialogClose ( )

Returns an AjaxResponse with command to close dialog.

The JSON response object.
static dialogContents ( )

Example content for dialog testing.

array Renderable array of AJAX dialog contents.

References Url\fromRoute().

Referenced by AjaxTestDialogForm\dialog(), and DialogTest\testDialog().

Here is the call graph for this function:

Here is the caller graph for this function:

order ( )

Returns an AjaxResponse; settings command set last.

Helps verifying AjaxResponse reorders commands to ensure correct execution.

render ( )

Returns a render array that will be rendered by AjaxRenderer.

Ensures that ::ajaxRender() incorporates JavaScript settings generated during the page request by adding a dummy setting.

renderError ( Request  $request)

Returns an AjaxResponse with alert command.

\Symfony\Component\HttpFoundation\Request$requestThe current request object.
The JSON response object.

The documentation for this class was generated from the following file: