From what I can understand from
|
$this->getSubComponentHtml( ContentBody::class, 'ContentBody' ) . |
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