Zend\Permissions\Acl\Acl::inheritsResource
Returns true if and only if $resource inherits from $inherit
Both parameters may be either a Resource or a Resource identifier. If $onlyParent is true, then $resource must inherit directly from $inherit in order to return true. By default, this method looks through the entire inheritance tree to determine whether $resource inherits from $inherit through its ancestor Resources.
Signature
public function inheritsResource(ResourceInterface|string
$resource,
[
$inherit = false,
[bool
$onlyParent = false]] )
Parameters
$resource
— object
$inherit
—$onlyParent
— object
Returns
- bool