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); }

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

AjaxBasePageNegotiator::determineActiveTheme

public AjaxBasePageNegotiator::determineActiveTheme(RouteMatchInterface $route_match) Determine the active theme for the request. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value string|null The name of the theme, or NULL if other negotiators, like the configured default one, should be used instead. Overrides ThemeNegotiatorInterface::determineActiveTheme File core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php, line 75 Class

AjaxBasePageNegotiator::applies

public AjaxBasePageNegotiator::applies(RouteMatchInterface $route_match) Whether this theme negotiator should be used to set the theme. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object. Return value bool TRUE if this negotiator should be used or FALSE to let other negotiators decide. Overrides ThemeNegotiatorInterface::applies File core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php, line 67 Class AjaxBasePageNegotiator Defines a theme ne

AjaxBasePageNegotiator::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php, line 46 Class AjaxBasePageNegotiator Defines a theme negotiator that deals with the active theme on ajax requests. Namespace Drupal\Core\Theme Code protected $requestStack;

AjaxRenderer

Default main content renderer for Ajax requests. Hierarchy class \Drupal\Core\Render\MainContent\AjaxRenderer implements MainContentRendererInterface File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 16 Namespace Drupal\Core\Render\MainContent Members Name Modifiers Type Description AjaxRenderer::$controllerResolver protected property The controller resolver. AjaxRenderer::$elementInfoManager protected property The element info manager. AjaxRe

AjaxBasePageNegotiator::__construct

public AjaxBasePageNegotiator::__construct(CsrfTokenGenerator $token_generator, ConfigFactoryInterface $config_factory, RequestStack $request_stack) Constructs a new AjaxBasePageNegotiator. Parameters \Drupal\Core\Access\CsrfTokenGenerator $token_generator: The CSRF token generator. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request. File core/lib/D

Ajax API

Overview for Drupal's Ajax API. Overview of Ajax Ajax is the process of dynamically updating parts of a page's HTML based on data from the server. When a specified event takes place, a PHP callback is triggered, which performs server-side logic and may return updated markup or JavaScript commands to run. After the return, the browser runs the JavaScript or updates the markup on the fly, with no full page refresh necessary. Many different events can trigger Ajax responses, including: Clicking a

AjaxBasePageNegotiator::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php, line 39 Class AjaxBasePageNegotiator Defines a theme negotiator that deals with the active theme on ajax requests. Namespace Drupal\Core\Theme Code protected $configFactory;

AjaxBasePageNegotiator

Defines a theme negotiator that deals with the active theme on ajax requests. Many different pages can invoke an Ajax request to a generic Ajax path. It is almost always desired for an Ajax response to be rendered using the same theme as the base page, because most themes are built with the assumption that they control the entire page, so if the CSS for two themes are both loaded for a given page, they may conflict with each other. For example, Bartik is Drupal's default theme, and Seven is Dru