Skip to content

Commit edc0899

Browse files
committed
Add getViewModel() in repository directly
1 parent 69ebc95 commit edc0899

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Component/ComponentRepository.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public function getComponent(): ComponentInterface
2121
return $this->component;
2222
}
2323

24+
public function getViewModel(): ComponentViewModelInterface
25+
{
26+
return $this->component->getViewModel();
27+
}
28+
2429
public function getComponentName(): string
2530
{
2631
return $this->component->getName();

0 commit comments

Comments
 (0)