AndrewHaine\SiteTreeInheritanceHelpers\Extensions\SiteTreeExtension::getInheritedRelationValue
Method to inherit a relation from the parent - use this for has_one, has_many or many_many
Signature
public function getInheritedRelationValue(string
$relationName,
[boolean
$isList = false] )
Parameters
$relationName
— string$isList
— boolean- Set to true to check a list rather than a single object
Returns
- mixed|false
- The returned relation - will probably be a list of some kind