PathTestNodeGrantsHooks.php

Namespace

Drupal\path_test_node_grants\Hook

File

core/modules/path/tests/modules/path_test_node_grants/src/Hook/PathTestNodeGrantsHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\path_test_node_grants\Hook;

use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for path_test_node_grants.
 */
class PathTestNodeGrantsHooks {
    
    /**
     * Implements hook_node_grants().
     */
    public function nodeGrants(AccountInterface $account, $operation) : array {
        $grants = [];
        return $grants;
    }

}

Classes

Title Deprecated Summary
PathTestNodeGrantsHooks Hook implementations for path_test_node_grants.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.