Same filename and directory in other branches
- 8.9.x core/lib/Drupal/Core/Render/Element/Ajax.php
- 9 core/lib/Drupal/Core/Render/Element/Ajax.php
Namespace
Drupal\Core\Render\Element
File
core/lib/Drupal/Core/Render/Element/Ajax.php
View source
<?php
namespace Drupal\Core\Render\Element;
use Drupal\Core\Render\Attribute\RenderElement;
use Drupal\Core\Render\Element\RenderElement as RenderElementBase;
class Ajax extends RenderElementBase {
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);
}
public function getInfo() {
return [
'#header' => TRUE,
'#commands' => [],
'#error' => NULL,
];
}
}
Classes