private function loadTypes($templateKey, $path, &$tags, \DOMXPath $xpath, \DOMNode $context = null)
{
$result = [];
/** @var \DOMElement $node */
foreach ($xpath->query($path, $context) as $node) {
$value = $this->loadType($templateKey, $xpath, $node, $tags);
$result[$value['name']] = $value;
}
return $result;
}