AndrewHaine\SiteTreeInheritanceHelpers\Extensions\SiteTreeExtension::check_list_method
Check that a method which should return a list exists and that the result is valid
Signature
private function check_list_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 list - will return false if anything is wrong