unlcms / project-herbie

Drupal 10 implementation at the University of Nebraska–Lincoln
https://cms.unl.edu
GNU General Public License v2.0
6 stars 7 forks source link

Setting labels in unl_blocks_entity_type_alter() needs to use TranslatableMarkup #862

Closed ericras closed 3 weeks ago

ericras commented 3 weeks ago

Visiting /admin/structure/salesforce/mappings/add produces an error:

Error: Call to a member function render() on string in Drupal\salesforce_mapping_ui\Form\SalesforceMappingFormCrudBase->Drupal\salesforce_mapping_ui\Form{closure}() (line 527 of /var/www/project-herbie/web/modules/contrib/salesforce/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php).

Tracing that gets to how the "Component" label is set in unl_blocks_entity_type_alter().