Skip to content

Commit 880142b

Browse files
2bad2furiousdg
authored andcommitted
SelectBox, MultiSelectBox: added getOptionAttributes() (#189)
1 parent 4cb2a2e commit 880142b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Forms/Controls/MultiSelectBox.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,10 @@ public function addOptionAttributes(array $attributes)
8484
$this->optionAttributes = $attributes + $this->optionAttributes;
8585
return $this;
8686
}
87+
88+
89+
public function getOptionAttributes(): array
90+
{
91+
return $this->optionAttributes;
92+
}
8793
}

src/Forms/Controls/SelectBox.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,10 @@ public function isOk(): bool
124124
|| !$this->options
125125
|| $this->control->size > 1;
126126
}
127+
128+
129+
public function getOptionAttributes(): array
130+
{
131+
return $this->optionAttributes;
132+
}
127133
}

0 commit comments

Comments
 (0)