public function FormModeManagerBase::setHiddenFieldFormMode in Form mode manager 8.2
Helper method to hide field for given entity form path.
1 call to FormModeManagerBase::setHiddenFieldFormMode()
- FormModeManagerUiTest::setUp in tests/
src/ Functional/ FormModeManagerUiTest.php
File
- tests/
src/ Functional/ FormModeManagerBase.php, line 177
Class
- FormModeManagerBase
- Provides a test case for form_mode_manager functional tests.
Namespace
Drupal\Tests\form_mode_manager\FunctionalCode
public function setHiddenFieldFormMode($path, $field_name) {
$this
->drupalGet($path);
$edit = [
"fields[{$field_name}][region]" => 'hidden',
];
$this
->submitForm($edit, t('Save'));
}