public function vapnHandler::insertRoleEntry in View access per node 8
File
- src/
vapnHandler.php, line 67
Class
- vapnHandler
- Class vapnHandler.
Namespace
Drupal\vapnCode
public function insertRoleEntry($nid, $rid) {
//aggiorna
$connection = \Drupal::database();
$connection
->insert('vapn')
->fields([
'nid' => $nid,
'rid' => $rid,
])
->execute();
}