Skip to content

Commit 2f31a48

Browse files
committed
Add ability to add inputProps in component inside eventListener
1 parent c9bf5ee commit 2f31a48

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/TwigComponent/src/Event/PreCreateForRenderEvent.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ public function getInputProps(): array
4949
return $this->inputProps;
5050
}
5151

52+
public function setInputProps(array $inputProps): self {
53+
$this->inputProps = $inputProps;
54+
55+
return $this;
56+
}
57+
5258
public function setRenderedString(string $renderedString): void
5359
{
5460
$this->renderedString = $renderedString;

0 commit comments

Comments
 (0)