AliasManager

The default alias manager implementation. Hierarchy class \Drupal\Core\Path\AliasManager implements CacheDecoratorInterface, AliasManagerInterface File core/lib/Drupal/Core/Path/AliasManager.php, line 13 Namespace Drupal\Core\Path Members Name Modifiers Type Description AliasManager::$cache protected property Cache backend service. AliasManager::$cacheKey protected property The cache key to use when caching paths. AliasManager::$cacheNeedsWriting protected

AlertCommand::__construct

public AlertCommand::__construct($text) Constructs an AlertCommand object. Parameters string $text: The text to be displayed in the alert box. File core/lib/Drupal/Core/Ajax/AlertCommand.php, line 25 Class AlertCommand AJAX command for a javascript alert box. Namespace Drupal\Core\Ajax Code public function __construct($text) { $this->text = $text; }

AlertCommand::render

public AlertCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/AlertCommand.php, line 32 Class AlertCommand AJAX command for a javascript alert box. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'alert', 'text' => $this->text, ); }

AlertCommand::$text

The text to be displayed in the alert box. Type: string File core/lib/Drupal/Core/Ajax/AlertCommand.php, line 17 Class AlertCommand AJAX command for a javascript alert box. Namespace Drupal\Core\Ajax Code protected $text;

AlertCommand

AJAX command for a javascript alert box. Hierarchy class \Drupal\Core\Ajax\AlertCommand implements CommandInterface Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/AlertCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description AlertCommand::$text protected property The text to be displayed in the alert box. AlertCommand::render public function Implements Drupal\Core\Ajax\CommandInterface:rende

AjaxResponseSubscriber::__construct

public AjaxResponseSubscriber::__construct(AttachmentsResponseProcessorInterface $ajax_response_attachments_processor) Constructs an AjaxResponseSubscriber object. Parameters \Drupal\Core\Render\AttachmentsResponseProcessorInterface $ajax_response_attachments_processor: The AJAX response attachments processor service. File core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php, line 31 Class AjaxResponseSubscriber Response subscriber to handle AJAX responses. Namespace Drupal\

AjaxResponseSubscriber::onResponse

public AjaxResponseSubscriber::onResponse(FilterResponseEvent $event) Renders the ajax commands right before preparing the result. Parameters \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event: The response event, which contains the possible AjaxResponse object. File core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php, line 59 Class AjaxResponseSubscriber Response subscriber to handle AJAX responses. Namespace Drupal\Core\EventSubscriber Code public function on

AjaxResponseSubscriber::onRequest

public AjaxResponseSubscriber::onRequest(GetResponseEvent $event) Sets the AJAX parameter from the current request. Parameters \Symfony\Component\HttpKernel\Event\GetResponseEvent $event: The response event, which contains the current request. File core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php, line 46 Class AjaxResponseSubscriber Response subscriber to handle AJAX responses. Namespace Drupal\Core\EventSubscriber Code public function onRequest(GetResponseEvent $event

AjaxResponseSubscriber::getSubscribedEvents

public static AjaxResponseSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)

AjaxResponseSubscriber::AJAX_REQUEST_PARAMETER

Request parameter to indicate that a request is a Drupal Ajax request. File core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php, line 38 Class AjaxResponseSubscriber Response subscriber to handle AJAX responses. Namespace Drupal\Core\EventSubscriber Code const AJAX_REQUEST_PARAMETER = '_drupal_ajax';