public renderDeprecatedView ( string $view, array $vars, string $suggestion, string $version ) : string | ||
$view | string | The name and location of the view to use |
$vars | array | Variables to pass to the view |
$suggestion | string | Suggestion with the deprecation message |
$version | string | Human-readable *release* version: 1.7, 1.8, ... |
return | string | The parsed view |
public function renderDeprecatedView($view, array $vars, $suggestion, $version)
{
$view = $this->canonicalizeViewName($view);
$rendered = $this->renderView($view, $vars, false, '', false);
if ($rendered) {
elgg_deprecated_notice("The {$view} view has been deprecated. {$suggestion}", $version, 3);
}
return $rendered;
}