You are here

public function Twig_Template::getBlockNames in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Template.php \Twig_Template::getBlockNames()

Returns all block names.

This method is for internal use only and should never be called directly.

@internal

Return value

array An array of block names

See also

hasBlock

File

vendor/twig/twig/lib/Twig/Template.php, line 270

Class

Twig_Template
Default base class for compiled templates.

Code

public function getBlockNames() {
  return array_keys($this->blocks);
}