PHP 트레잇 Neos\Fusion\ViewHelpers\TypoScriptContextTrait

It will only work when the ViewHelper in question is used in a TypoScriptAwareViewInterface. A property "viewHelperVariableContainer" is expected in classes that use this, which will be the case for any Fluid ViewHelper.
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 메소드들

메소드 설명
getContextVariable ( string $variableName ) : mixed Get a variable value from the TypoScript runtime context.
hasContextVariable ( string $variableName ) : boolean

메소드 상세

getContextVariable() 보호된 메소드

Note: This will return NULL if the variable didn't exist.
또한 보기: hasContextVariable()
protected getContextVariable ( string $variableName ) : mixed
$variableName string
리턴 mixed

hasContextVariable() 보호된 메소드

protected hasContextVariable ( string $variableName ) : boolean
$variableName string
리턴 boolean