function Ajax::__construct

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Render/Element/Ajax.php \Drupal\Core\Render\Element\Ajax::__construct()

Overrides RenderElement::__construct

File

core/lib/Drupal/Core/Render/Element/Ajax.php, line 24

Class

Ajax
Provides a render element for adding Ajax to a render element.

Namespace

Drupal\Core\Render\Element

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    @trigger_error('\\Drupal\\Core\\Render\\Element\\Ajax is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Return an \\Drupal\\Core\\Ajax\\AjaxResponse instead. See https://www.drupal.org/node/3068104', E_USER_DEPRECATED);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.