You are here

public function FilebrowserStorage::update in Filebrowser 3.x

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

File

src/Services/FilebrowserStorage.php, line 106

Class

FilebrowserStorage

Namespace

Drupal\filebrowser\Services

Code

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