TestAddForm.php in Drupal 9
Same filename and directory in other branches
File
core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.phpView 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
Name | Description |
---|---|
TestAddForm | Test add form. |