Zend\Permissions\Acl\Role\Registry::getParents
Returns an array of an existing Role's parents
The array keys are the identifiers of the parent Roles, and the values are the parent Role instances. The parent Roles are ordered in this array by ascending priority. The highest priority parent Role, last in the array, corresponds with the parent Role most recently added. If the Role does not have any parents, then an empty array is returned.
Signature
public function getParents(RoleInterface|string
$role )
Parameters
$role
— object
Returns
- array