You are here

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

File

src/vapnHandler.php, line 59

Class

vapnHandler
Class vapnHandler.

Namespace

Drupal\vapn

Code

public function cleanEntriesByEntityId($id) {
  $query = \Drupal::database()
    ->delete('vapn');
  $query
    ->condition('nid', $id);
  $count = $query
    ->execute();
  return $count > 0 ? TRUE : FALSE;
}