You are here
View more context
Nope
Trait’s aren’t “constructed” like objects are, so Injector can’t touch them
Injector
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()
but can't seem to find it...
@Mo there is a private static $field_labels
$field_labels
@Michael has joined the channel