IMPR: minor

This commit is contained in:
Tony Air 2023-01-10 21:59:20 +02:00
parent 3b4508419f
commit fb6c8d0b18
1 changed files with 6 additions and 0 deletions

View File

@ -90,4 +90,10 @@ class TeamMember extends DataObject
{
return $this->getField('Company').' | '.$this->getField('FirstName').' '.$this->getField('LastName');
}
public function getPage()
{
$el = \A2nt\ElementalBasics\Elements\TeamMembersElement::get()->first();
return $el ? $el->getPage() : false;
}
}