protected function getNodeFromTypoScriptContext() { $node = $this->getContextVariable('node'); if ($node === null) { throw new ViewHelperException('This ViewHelper can only be used in a TypoScript content element. You have to specify the "node" argument if it cannot be resolved from the TypoScript context.', 1385737102); } return $node; }