You are here

public function vapnHandler::insertRoleEntry in View access per node 8

File

src/vapnHandler.php, line 67

Class

vapnHandler
Class vapnHandler.

Namespace

Drupal\vapn

Code

public function insertRoleEntry($nid, $rid) {

  //aggiorna
  $connection = \Drupal::database();
  $connection
    ->insert('vapn')
    ->fields([
    'nid' => $nid,
    'rid' => $rid,
  ])
    ->execute();
}