TestAddForm.php

Same filename and directory in other branches
  1. 9 core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.php
  2. 8.9.x core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.php
  3. 10 core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.php

Namespace

Drupal\media_library_form_overwrite_test\Form

File

core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.php

View source
<?php

namespace Drupal\media_library_form_overwrite_test\Form;

use Drupal\Core\Form\FormStateInterface;
use Drupal\media_library\Form\AddFormBase;

/**
 * Test add form.
 */
class TestAddForm extends AddFormBase {
    
    /**
     * {@inheritdoc}
     */
    protected function buildInputElement(array $form, FormStateInterface $form_state) {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    public function getFormId() {
        return 'test_add_form';
    }

}

Classes

Title Deprecated Summary
TestAddForm Test add form.

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