@trigger_error('Calling '.__METHOD__.'() without the $entity_type_manager argument is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. See https://www.drupal.org/node/3396525',E_USER_DEPRECATED);
$this->messenger()->addStatus($this->t('The field %field has been deleted from the %type content type.',['%field'=>$this->entity->label(),'%type'=>$bundle_label]));
$this->messenger()->addStatus($this->t('The field %field has been deleted from the %type %source_label.',[
'%field'=>$this->entity->label(),
'%type'=>$bundle_label,
'%source_label'=>$source_label,
]));
}
else{
$this->messenger()->addError($this->t('There was a problem removing the %field from the %type content type.',['%field'=>$this->entity->label(),'%type'=>$bundle_label]));
$this->messenger()->addError($this->t('There was a problem removing the %field from the %type %source_label.',[