Created
June 27, 2018 07:38
-
-
Save batigolix/af8f938b39522ca9cf5ce815b5243152 to your computer and use it in GitHub Desktop.
Update query for Drupal 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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