AjaxResponseAttachmentsProcessor::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 71 Class AjaxResponseAttachmentsProcessor Processes attachments of AJAX responses. Namespace Drupal\Core\Ajax Code protected $moduleHandler;

AjaxResponseAttachmentsProcessor::$jsCollectionRenderer

The JS asset collection renderer service. Type: \Drupal\Core\Asset\AssetCollectionRendererInterface File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 50 Class AjaxResponseAttachmentsProcessor Processes attachments of AJAX responses. Namespace Drupal\Core\Ajax Code protected $jsCollectionRenderer;

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

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

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

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::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::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php, line 23 Class AjaxRenderer Default main content renderer for Ajax requests. Namespace Drupal\Core\Render\MainContent Code protected $controllerResolver;