Extending a core module file
Created 7 years ago by failcookieI would like to extend the PostsModule.php
file to alter the sections to add a couple of new streams and to change the icon (client request). I have created an extension that handles all of my core module overwrites for Posts and have mimicked the PostsModule.php
and extended to a custom ExtPostsModule.php
, but how do I make sure the extension calls this extended file and overwrites the Posts module?
Turns out it is really easy. For my case, I wanted to add a new section to house the stream I created for
company_category
. In yourExtensionServiceProvider.php
add in the following in themap()
function: