Devise\Pages\Interpreter\DeviseTag::extractParametersForVariable PHP Method

extractParametersForVariable() protected method

Extracts out parameters for a variable binding type which is essentially a model or model attribute type
protected extractParametersForVariable ( string $key, array $params ) : void
$key string
$params array
return void
    protected function extractParametersForVariable($key, $params)
    {
        $this->chain = $this->createChainArray($key);
        $this->type = 'variable';
        $this->humanName = isset($params[1]) && $params[1] !== 'null' && $params[1] ? $params[1] : $this->humanize($key);
        $this->group = isset($params[2]) && $params[2] !== 'null' && $params[2] ? $params[2] : null;
        $this->category = isset($params[3]) && $params[3] !== 'null' && $params[3] ? $params[3] : null;
        $this->alternateTarget = isset($params[4]) && $params[4] !== 'null' && $params[4] ? $params[4] : null;
        $this->defaults = isset($params[5]) && $params[5] !== 'null' && $params[5] ? $params[5] : null;
    }