Programatically insert field value of for a taxonomy term 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' =&gt; 'field_school_name',
    'name' =&gt; 'ABCD',
]);

$new_term-&gt;enforceIsNew();
$new_term-&gt;save();
Should just need to do:

$new_term = \Drupal\taxonomy\Entity\Term::create([
 'vid' =&gt; 'field_school_name',
 'name' =&gt; 'ABCD',
 'field_school_id' =&gt; '1234'
]);