Open mudrd8mz opened 8 months ago
From what I can understand from https://github.com/ProfessionalWiki/chameleon/blob/3094d2f3e40216287792b1a2aef8b188ace497e3/src/Components/MainContent.php#L59 the MainContent component has hard-coded ContentBody as the class to provide the content body HTML.
What is the clean way to inject my own ContentBody subclass to be used instead?
My use-case is that in buildContentBody() I want to perform some DOM modifications and I am trying to find the clean way to customise it.
buildContentBody()
TIA
From what I can understand from https://github.com/ProfessionalWiki/chameleon/blob/3094d2f3e40216287792b1a2aef8b188ace497e3/src/Components/MainContent.php#L59 the MainContent component has hard-coded ContentBody as the class to provide the content body HTML.
What is the clean way to inject my own ContentBody subclass to be used instead?
My use-case is that in
buildContentBody()
I want to perform some DOM modifications and I am trying to find the clean way to customise it.TIA