// A template file is the default implementation for a theme hook, but
// if the theme hook specifies a function callback instead, check to
// ensure the function actually exists.
if(isset($info['function'])){
trigger_error(sprintf('Theme functions are deprecated in drupal:8.0.0 and are removed from drupal:10.0.0. Use Twig templates instead of %s(). See https://www.drupal.org/node/1831138',$info['function']),E_USER_DEPRECATED);
if(!function_exists($info['function'])){
thrownew\BadFunctionCallException(sprintf(
'Theme hook "%s" refers to a theme function callback that does not exist: "%s"',
$hook,
$info['function']
));
}
}
// Provide a default naming convention for 'template' based on the
// hook used. If the template does not exist, the theme engine used
// should throw an exception at runtime when attempting to include