AndrewHaine\SiteTreeInheritanceHelpers\Extensions\SiteTreeExtension::check_relation_method
Check that a related object is present on the current page and that said object exists - use this for single object relations
Signature
private function check_relation_method(SiteTree
$page,
string
$relationName )
Parameters
$page
—
object
- Page object to check the method on
$relationName
—
string
- The name of the method which returns a list
Returns
- mixed
- The found object