Skip to content

Commit 835330b

Browse files
authored
[6.0] Modification fields header tag, module tag add custom options in XML (#35184)
* Update ModuletagField.php * Update HeadertagField.php * Phase 1 convert BRANCH to PSR-12 * Phase 2 convert BRANCH to PSR-12 ---------
1 parent 6737583 commit 835330b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/src/Form/Field/HeadertagField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class HeadertagField extends ListField
3939
*/
4040
protected function getOptions()
4141
{
42-
$options = [];
42+
$options = parent::getOptions();
4343
$tags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'div'];
4444

4545
// Create one new option object for each tag

libraries/src/Form/Field/ModuletagField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ModuletagField extends ListField
3939
*/
4040
protected function getOptions()
4141
{
42-
$options = [];
42+
$options = parent::getOptions();
4343
$tags = ['address', 'article', 'aside', 'details', 'div', 'footer', 'header', 'main', 'nav', 'section', 'summary'];
4444

4545
// Create one new option object for each tag

0 commit comments

Comments
 (0)