Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/node.api.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
49 * 'realm' => 'example_realm', | 49 * 'realm' => 'example_realm', |
50 * 'grant_view' => 1, | 50 * 'grant_view' => 1, |
51 * 'grant_update' => 0, | 51 * 'grant_update' => 0, |
52 * 'grant_delete' => 0, | 52 * 'grant_delete' => 0, |
53 * ); | 53 * ); |
54 * db_insert('node_access')->fields($record)->execute(); | 54 * \Drupal::database()->insert('node_access')->fields($record)->execute(); |
55 * @endcode | 55 * @endcode |
56 * And then in its hook_node_grants() implementation, it would need to return: | 56 * And then in its hook_node_grants() implementation, it would need to return: |
57 * @code | 57 * @code |
58 * if ($op == 'view') { | 58 * if ($op == 'view') { |
59 * $grants['example_realm'] = array(888); | 59 * $grants['example_realm'] = array(888); |