Deprecation: #95003 - Extbase ViewInterface canRender()

See forge#95003

Description

To streamline and simplify Fluid view related classes, the Extbase related TYPO3\CMS\Extbase\Mvc\View\ViewInterface method canRender() has been dropped from the interface.

Impact

The method should not be used anymore. Implementations in consuming view classes are kept in TYPO3 v11 but have been marked as deprecated and trigger a PHP E_USER_DEPRECATED error upon usage.

Affected Installations

Method canRender() had limited use within Extbase, it is rather unlikely many instances with extensions using the method exist. It's purpose was to check for Fluid template existence before calling $view->render(), but all existing view implementations throw an exception during render() if a template path can't be resolved.

Migration

Do not call canRender() on template view instances, but let render() throw \TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException on error instead.