FluidTYPO3\Vhs\Traits\BasicViewHelperTrait::getArgumentFromArgumentsOrTagContent PHP Méthode

getArgumentFromArgumentsOrTagContent() protected méthode

Retrieve an argument either from arguments if specified there, else from tag content.
protected getArgumentFromArgumentsOrTagContent ( string $argumentName ) : mixed
$argumentName string
Résultat mixed
    protected function getArgumentFromArgumentsOrTagContent($argumentName)
    {
        if (false === $this->hasArgument($argumentName)) {
            $value = $this->renderChildren();
        } else {
            $value = $this->arguments[$argumentName];
        }
        return $value;
    }