canAddChild() public method (available since version 2.0.8)
Checks the possibility of adding a child to parent
public boolean canAddChild ( $parent, $child ) | ||
---|---|---|
$parent | yii\rbac\Item |
The parent item |
$child | yii\rbac\Item |
The child item to be added to the hierarchy |
return | boolean |
Possibility of adding |
Please login to continue.