AjaxResponseAttachmentsProcessor::$config

A config object for the system performance configuration. Type: \Drupal\Core\Config\Config File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 36 Class AjaxResponseAttachmentsProcessor Processes attachments of AJAX responses. Namespace Drupal\Core\Ajax Code protected $config;

AjaxResponseAttachmentsProcessor::$assetResolver

The asset resolver service. Type: \Drupal\Core\Asset\AssetResolverInterface File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 29 Class AjaxResponseAttachmentsProcessor Processes attachments of AJAX responses. Namespace Drupal\Core\Ajax Code protected $assetResolver;

AjaxResponseAttachmentsProcessor

Processes attachments of AJAX responses. Hierarchy class \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor implements AttachmentsResponseProcessorInterface See also \Drupal\Core\Ajax\AjaxResponse \Drupal\Core\Render\MainContent\AjaxRenderer File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 22 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description AjaxResponseAttachmentsProcessor::$assetResolver protected property The asset resolver s

AjaxResponse::getCommands

public &AjaxResponse::getCommands() Gets all AJAX commands. Return value \Drupal\Core\Ajax\CommandInterface[] Returns all previously added AJAX commands. File core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 64 Class AjaxResponse JSON response object for AJAX requests. Namespace Drupal\Core\Ajax Code public function &getCommands() { return $this->commands; }

AjaxResponse::addCommand

public AjaxResponse::addCommand(CommandInterface $command, $prepend = FALSE) Add an AJAX command to the response. Parameters \Drupal\Core\Ajax\CommandInterface $command: An AJAX command object implementing CommandInterface. bool $prepend: A boolean which determines whether the new command should be executed before previously added commands. Defaults to FALSE. Return value AjaxResponse The current AjaxResponse. File core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 38 Class AjaxResponse JS

AjaxResponse::$commands

The array of ajax commands. Type: array File core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 24 Class AjaxResponse JSON response object for AJAX requests. Namespace Drupal\Core\Ajax Code protected $commands = array();

AjaxResponse

JSON response object for AJAX requests. Hierarchy class \Symfony\Component\HttpFoundation\JsonResponse extends \Symfony\Component\HttpFoundation\Response class \Drupal\Core\Ajax\AjaxResponse implements AttachmentsInterface uses AttachmentsTrait Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 15 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description AjaxResponse::$commands protected property The

AjaxRenderer::__construct

public AjaxRenderer::__construct(ElementInfoManagerInterface $element_info_manager) Constructs a new AjaxRenderer instance. Parameters \Drupal\Core\Render\ElementInfoManagerInterface $element_info_manager: The element info manager. File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 38 Class AjaxRenderer Default main content renderer for Ajax requests. Namespace Drupal\Core\Render\MainContent Code public function __construct(ElementInfoManagerInterface $element_info_ma

AjaxRenderer::renderResponse

public AjaxRenderer::renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match) Renders the main content render array into a response. Parameters array $main_content: The render array representing the main content. \Symfony\Component\HttpFoundation\Request $request: The request object, for context. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context. Return value \Symfony\Component\HttpFoundation\Response The Response in the format

AjaxRenderer::drupalRenderRoot

protected AjaxRenderer::drupalRenderRoot(&$elements) Wraps drupal_render_root(). @todo Remove as part of https://www.drupal.org/node/2182149. File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 82 Class AjaxRenderer Default main content renderer for Ajax requests. Namespace Drupal\Core\Render\MainContent Code protected function drupalRenderRoot(&$elements) { return drupal_render_root($elements); }