I have a taxonomy vocabulary called School and the name of the machine is field_school_name. The vocabulary has a field called school identifier (computer name: field_school_id). I can add a verb successfully using the following code. How can I add the value of the field programmatically?
$ new_term = Drupal taxonomy Entity Term :: create ([ 'vid' => 'field_school_name', 'name' => 'ABCD', ]) $ new_term-> enforceIsNew (); $ new_term-> save ();