// If we're continuing on error silence errors from notices that
// missing indexes.
// @todo consider change this to an error handler that converts such
// notices to exceptions in https://www.drupal.org/node/3309886
@$this->doOne($entity,$callback);
}
else{
$this->doOne($entity,$callback);
}
}
catch(\Throwable$throwable){
if(!$continue_on_error){
throw$throwable;
}
$context['%view']=$entity->id();
$context['%entity_type']=$entity_type_id;
$context+=Error::decodeException($throwable);
\Drupal::logger('update')->error('Unable to update %entity_type %view due to error @message %function (line %line of %file). <pre>@backtrace_string</pre>',$context);