What is the best practice for removing template files that have been defined in PHP files?
For example I want to remove
helper/summary_short.phtml on category pages, normally I'd remove the block via XML. But I can't do this as the template isn't defined in a block, it's defined in PHP.
/** * Array of available template name * * @var array */ protected $_availableTemplates = [ self::FULL_VIEW => 'helper/summary.phtml', self::SHORT_VIEW => 'helper/summary_short.phtml', ];