class BasicFormNoContainerInjectionInterface

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

Hierarchy

Expanded class hierarchy of BasicFormNoContainerInjectionInterface

File

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

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
BasicFormNoContainerInjectionInterface::buildForm public function Form constructor. Overrides FormInterface::buildForm
BasicFormNoContainerInjectionInterface::getFormId public function Returns a unique string identifying the form. Overrides FormInterface::getFormId
BasicFormNoContainerInjectionInterface::submitForm public function Form submission handler. Overrides FormInterface::submitForm
BasicFormNoContainerInjectionInterface::validateForm public function Form validation handler. Overrides FormInterface::validateForm

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