Answers for "add language to set field drupal 8"

0

add language to set field drupal 8

$translation->set('field_my_field', 'my en value');
$translation = $term->getTranslation('ja');
$translation->set('field_my_field', 'my ja value');
$term->save();
Posted by: Guest on May-17-2021

Browse Popular Code Answers by Language