function Deprecated::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/element_info_test/src/Element/Deprecated.php \Drupal\element_info_test\Element\Deprecated::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

core/modules/system/tests/modules/element_info_test/src/Element/Deprecated.php, line 17

Class

Deprecated
Provides deprecated render element for testing.

Namespace

Drupal\element_info_test\Element

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  @trigger_error(__CLASS__ . ' is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. 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.