Deprecation: #95003 - Extbase ViewInterface canRender()¶
See Issue #95003
To streamline and simplify Fluid view related classes, the
canRender() has been dropped from the interface.
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.
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
render() if a template path can’t be resolved.
Do not call
canRender() on template view instances, but let
\TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException on error