Use static TranslatableMarkup instead of trait for FieldBlockDeriver

Created on 2 October 2020, about 4 years ago
Updated 29 February 2024, 10 months ago

Problem/Motivation

It's used only once for $derivative['category'] which 80% of time is used to list in UI so no reason to pass translation service object with block definition

Proposed resolution

Create new TranslatableMarkup object directly instead of using $this->t() which causes to query container for current translation service

Remaining tasks

review/commit

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

no

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated 4 days ago

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024