I have a taxonomy vocabulary called, school and the machine name is field_school_name. The vocabulary has a field called school id (machine name:field_school_id). I am able to add a verb successfully using the following code. How do I add the field value programatically? I want to add '1234' as the school id associated with the verb 'ABCD' I created.
$new_term = \Drupal\taxonomy\Entity\Term::create([ 'vid' => 'field_school_name', 'name' => 'ABCD', ]); $new_term->enforceIsNew(); $new_term->save();