class Deprecated
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/element_info_test/src/Element/Deprecated.php \Drupal\element_info_test\Element\Deprecated
- 10 core/modules/system/tests/modules/element_info_test/src/Element/Deprecated.php \Drupal\element_info_test\Element\Deprecated
Provides deprecated render element for testing.
Attributes
#[RenderElement('deprecated')]
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\DependencyInjection\AutowiredInstanceTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\Render\Element\RenderElementBase implements \Drupal\Core\Render\Element\ElementInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\element_info_test\Element\Deprecated extends \Drupal\Core\Render\Element\RenderElementBase
- class \Drupal\Core\Render\Element\RenderElementBase implements \Drupal\Core\Render\Element\ElementInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\DependencyInjection\AutowiredInstanceTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of Deprecated
21 string references to 'Deprecated'
- AnnotatedClassDiscoveryTest::provideBadAnnotations in core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ AnnotatedClassDiscoveryTest.php - All the Drupal documentation standards tags.
- ban.info.yml in core/
modules/ ban/ ban.info.yml - core/modules/ban/ban.info.yml
- block_content_storage_body_field.info.yml in core/
modules/ block_content/ modules/ block_content_storage_body_field/ block_content_storage_body_field.info.yml - core/modules/block_content/modules/block_content_storage_body_field/block_content_storage_body_field.info.yml
- contact.info.yml in core/
modules/ contact/ contact.info.yml - core/modules/contact/contact.info.yml
- DeprecatedElementTest::testBuildInfo in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ DeprecatedElementTest.php - Tests that render elements can trigger deprecations in their constructor.
File
-
core/
modules/ system/ tests/ modules/ element_info_test/ src/ Element/ Deprecated.php, line 13
Namespace
Drupal\element_info_test\ElementView source
class Deprecated extends RenderElementBase {
/**
* {@inheritdoc}
*/
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);
}
/**
* {@inheritdoc}
*/
public function getInfo() {
return [];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.