class BasicFormNoUpcasting

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php \Drupal\Tests\Core\Entity\BasicFormNoUpcasting
  2. 10 core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php \Drupal\Tests\Core\Entity\BasicFormNoUpcasting
  3. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php \Drupal\Tests\Core\Entity\BasicFormNoUpcasting

A basic form with a passed entity without an interface.

Hierarchy

Expanded class hierarchy of BasicFormNoUpcasting

File

core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php, line 539

Namespace

Drupal\Tests\Core\Entity
View source
class BasicFormNoUpcasting extends FormBase {
  
  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return '';
  }
  
  /**
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state, $entity_test = NULL) {
    return [];
  }
  
  /**
   * {@inheritdoc}
   */
  public function submitForm(array &$form, FormStateInterface $form_state) {
  }

}

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