You are here
View more context
and you can pass it an array like ['Main', 'RelatedDocuments', 'RelatedPages' => 'Related articles', ]
['Main', 'RelatedDocuments', 'RelatedPages' => 'Related articles', ]
Great thanks.
If a module uses traits, is it even possible to use Injector to replace that Trait?
Injector
Nope
Trait’s aren’t “constructed” like objects are, so Injector can’t touch them
you might of course subclass that class, overwrite that trait's method and use injector to use your custom version @sander_ha
Aye I see. Quite the workaround @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
si tacuissem?
What is the preferable way to set a FieldLabel in the CMS?
FieldLabel
I thought there was a something like DataObject::setFieldLabels()
DataObject::setFieldLabels()