// If an entity ID was not specified, set an error.
if(!isset($data[$id_key])){
$form_state->setErrorByName('import',$this->t('Missing ID key "@id_key" for this @entity_type import.',['@id_key'=>$id_key,'@entity_type'=>$definition->getLabel()]));
$form_state->setErrorByName('import',$this->t('Missing ID key "@id_key" for this @entity_type import.',[
@@ -86,7 +86,10 @@ public static function create(ContainerInterface $container) {
* {@inheritdoc}
*/
publicfunctiongetQuestion(){
return$this->t('Are you sure you want to delete the @language translation of %label?',['%label'=>$this->mapper->getTitle(),'@language'=>$this->language->getName()]);
return$this->t('Are you sure you want to delete the @language translation of %label?',[
'%label'=>$this->mapper->getTitle(),
'@language'=>$this->language->getName(),
]);
}
/**
@@ -142,7 +145,11 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
$cache_backend->deleteAll();
}
$this->messenger()->addStatus($this->t('@language translation of %label was deleted',['%label'=>$this->mapper->getTitle(),'@language'=>$this->language->getName()]));
$this->messenger()
->addStatus($this->t('@language translation of %label was deleted',[
$title=$this->t('Select the @entity_type types for the @workflow workflow',['@entity_type'=>$this->entityType->getLabel(),'@workflow'=>$workflow->label()]);
$title=$this->t('Select the @entity_type types for the @workflow workflow',[
$title=$this->t('Select the @entity_type_plural_label for the @workflow workflow',['@entity_type_plural_label'=>$this->entityTypeManager->getDefinition($bundle_entity_type_id)->getPluralLabel(),'@workflow'=>$workflow->label()]);
$title=$this->t('Select the @entity_type_plural_label for the @workflow workflow',[