Use static TranslatableMarkup instead of trait for FieldBlockDeriver

Created on 2 October 2020, over 4 years ago
Updated 29 February 2024, about 1 year 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 about 24 hours 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