View more context

 

MichalKleiner

and you can pass it an array like ['Main', 'RelatedDocuments', 'RelatedPages' => 'Related articles', ]

sander_ha

If a module uses traits, is it even possible to use Injector to replace that Trait?

kinglozzer

Trait’s aren’t “constructed” like objects are, so Injector can’t touch them

wmk

you might of course subclass that class, overwrite that trait's method and use injector to use your custom version @sander_ha

wmk

well, from my understanding, the trait's methods become part of the class that includes the trait, like a "require" or "include" in good ol PHP3 times

Mo

What is the preferable way to set a FieldLabel in the CMS?

Mo

I thought there was a something like DataObject::setFieldLabels()