getPermissions() публичный Метод

Permission can be of 4 types: - add_node - read - remove - set_property This function will return an array containing zero, one or more of the above strings.
public getPermissions ( string $absPath ) : array
$absPath string absolute path to node to get permissions for it
Результат array of string
Пример #1
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function hasPermission($absPath, $actions)
 {
     $actualPermissions = $this->objectManager->getPermissions($absPath);
     $requestedPermissions = explode(',', $actions);
     foreach ($requestedPermissions as $perm) {
         if (!in_array(strtolower(trim($perm)), $actualPermissions)) {
             return false;
         }
     }
     return true;
 }