class DeprecatedExtendsFormElement

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/element_info_test/src/Element/DeprecatedExtendsFormElement.php \Drupal\element_info_test\Element\DeprecatedExtendsFormElement
  2. 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

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\Element
View 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.