ReflectionTemplate::getBlockByName
Gets a block by its name, e.g. <% loop $Items %> is named "Items" Not very reliable, as there may be multiple blocks with the same name.
Signature
public function getBlockByName(string
$name )
Parameters
$name
— string
Returns
- ReflectionTemplate_Block