You are here

public function FilebrowserStorage::insert in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 src/Services/FilebrowserStorage.php \Drupal\filebrowser\Services\FilebrowserStorage::insert()

File

src/Services/FilebrowserStorage.php, line 91

Class

FilebrowserStorage

Namespace

Drupal\filebrowser\Services

Code

public function insert($data) {
  return $this->connection
    ->insert('filebrowser_nodes')
    ->fields([
    'nid' => $data['nid'],
    'folder_path' => $data['folder_path'],
    'properties' => $data['properties'],
  ])
    ->execute();
}