public function ContainerTrait::statusFieldset in GoogleTagManager 8
Fieldset builder for the container settings form.
2 calls to ContainerTrait::statusFieldset()
- ContainerForm::form in src/
Form/ ContainerForm.php - Gets the actual form array to be built.
- SettingsForm::buildForm in src/
Form/ SettingsForm.php - Form constructor.
File
- src/
Form/ ContainerTrait.php, line 166
Class
- ContainerTrait
- Defines shared routines for the container and settings forms.
Namespace
Drupal\google_tag\FormCode
public function statusFieldset(FormStateInterface &$form_state) {
$fieldset_title = $this
->t('Response status');
$description = $this
->t('Enter one response status per line. For more information, refer to the <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes">list of HTTP status codes</a>.');
$rows = 5;
$singular = 'status';
$plural = 'statuses';
$adjective = 'listed';
$config = compact([
'fieldset_title',
'singular',
'plural',
'adjective',
'description',
'rows',
]);
return $this
->genericFieldset($config, $form_state);
}