public NodeGrantDatabaseStorage::writeDefault()
Creates the default node access grant entry.
Overrides NodeGrantDatabaseStorageInterface::writeDefault
File
- core/modules/node/src/NodeGrantDatabaseStorage.php, line 254
Class
- NodeGrantDatabaseStorage
- Defines a storage handler class that handles the node grants system.
Namespace
Drupal\node
Code
1 2 3 4 5 6 7 8 9 10 11 12 | public function writeDefault() { $this ->database->insert( 'node_access' ) ->fields( array ( 'nid' => 0, 'realm' => 'all' , 'gid' => 0, 'grant_view' => 1, 'grant_update' => 0, 'grant_delete' => 0, )) ->execute(); } |
Please login to continue.