DeprecatedExtendsFormElement.php

Same filename in other branches
  1. 10 core/modules/system/tests/modules/element_info_test/src/Element/DeprecatedExtendsFormElement.php

Namespace

Drupal\element_info_test\Element

File

core/modules/system/tests/modules/element_info_test/src/Element/DeprecatedExtendsFormElement.php

View source
<?php

declare (strict_types=1);
namespace Drupal\element_info_test\Element;

use Drupal\Core\Render\Attribute\FormElement;
use Drupal\Core\Render\Element\FormElement as FormElementDeprecated;

/**
 * Provides render element that extends deprecated FormElement for testing.
 *
 * @phpstan-ignore class.extendsDeprecatedClass
 */
class DeprecatedExtendsFormElement extends FormElementDeprecated {
    
    /**
     * {@inheritdoc}
     */
    public function getInfo() {
        return [];
    }

}

Classes

Title Deprecated Summary
DeprecatedExtendsFormElement Provides render element that extends deprecated FormElement for testing.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.