Deprecation: #95003 - Extbase ViewInterface canRender()
See forge#95003
Description
To streamline and simplify Fluid view related classes, the
Extbase related \TYPO3\
method can
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_
error upon usage.
Affected Installations
Method can
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 can
on template view instances, but let
render
throw \TYPO3Fluid\
on error
instead.