thrownew\InvalidArgumentException('Langcode can only be used with content entities currently.');
}
}
try{
return$entity->get($this->fieldName)->getValue();
}
catch(\Exception$e){
// Re-throw any exception thrown by the entity system.
thrownewMigrateException("Got exception reading field value {$this->fieldName} entity with ID {$entity->id()} in migrate_plus_entity_value process plugin:".$e->getMessage());