I want check lazy link if is current, but I can't because of private $component
class TabsComponent {
public function addLink(string $name, Link $link)
}
Solution is:
class Link {
public function getComponent(): Component
}
or better
class Link {
public function isLinkCurrent(): bool {
return $this->component->isLinkCurrent($this->destination, $this->parameters);
}
}
I'm willing to write a PR