Skip to content

Instantly share code, notes, and snippets.

@batigolix
Created June 27, 2018 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batigolix/af8f938b39522ca9cf5ce815b5243152 to your computer and use it in GitHub Desktop.
Save batigolix/af8f938b39522ca9cf5ce815b5243152 to your computer and use it in GitHub Desktop.
Update query for Drupal 8
/**
* Update taxonomy term.
*/
function _zk_general_test() {
$query = \Drupal::database()->update('taxonomy_term_field_data');
$query->fields([
'description__format' => 'plain_text',
]);
$query->condition('vid', 'sectors');
$query->execute();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment