Skip to content

Commit 3b879ac

Browse files
committed
chore: Deprecation notice
1 parent f00b928 commit 3b879ac

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Component/Component.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public function getTargetString(): string
5353
return preg_replace('/([^a-z0-9\-\ ]+)/', '-', implode(' ', $this->getTargets()));
5454
}
5555

56+
/**
57+
* @deprecated Will be removed in v3
58+
*/
5659
public function hasViewModel(): bool
5760
{
5861
return $this->getViewModel() instanceof ComponentViewModelInterface;

Component/ComponentInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ public function getContext(): ComponentContextInterface;
1616

1717
public function getViewModel(): ?ComponentViewModelInterface;
1818

19+
/**
20+
* @deprecated Will be removed in v3
21+
*/
1922
public function hasViewModel(): bool;
2023

2124
public function getRepository(): ?ComponentRepositoryInterface;

0 commit comments

Comments
 (0)