class DeprecatedExtendsFormElement
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/element_info_test/src/Element/DeprecatedExtendsFormElement.php \Drupal\element_info_test\Element\DeprecatedExtendsFormElement
- 10 core/modules/system/tests/modules/element_info_test/src/Element/DeprecatedExtendsFormElement.php \Drupal\element_info_test\Element\DeprecatedExtendsFormElement
Provides render element that extends deprecated FormElement for testing.
Attributes
#[FormElement('deprecated_extends_form')]
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\Core\Render\Element\FormElementBase implements \Drupal\Core\Render\Element\FormElementInterface extends \Drupal\Core\Render\Element\RenderElementBase
- class \Drupal\Core\Render\Element\FormElement extends \Drupal\Core\Render\Element\FormElementBase
- class \Drupal\element_info_test\Element\DeprecatedExtendsFormElement extends \Drupal\Core\Render\Element\FormElement
- class \Drupal\Core\Render\Element\FormElement extends \Drupal\Core\Render\Element\FormElementBase
- class \Drupal\Core\Render\Element\FormElementBase implements \Drupal\Core\Render\Element\FormElementInterface 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 DeprecatedExtendsFormElement
1 file declares its use of DeprecatedExtendsFormElement
- DeprecatedElementTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Render/ Element/ DeprecatedElementTest.php
1 #type use of DeprecatedExtendsFormElement
- 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/ DeprecatedExtendsFormElement.php, line 14
Namespace
Drupal\element_info_test\ElementView source
class DeprecatedExtendsFormElement extends FormElementDeprecated {
// @phpcs:enable
/**
* {@inheritdoc}
*/
public function getInfo() {
return [];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.