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

extractParametersFromUnparsedCreatorStr() protected method

Extracts out the parameters from an unparsed devise create model
protected extractParametersFromUnparsedCreatorStr ( string $params ) : void
$params string
return void
    protected function extractParametersFromUnparsedCreatorStr($params)
    {
        $params = ltrim($params);
        $params = str_replace('data-devise-create-model=', '', $params);
        $params = substr($params, 1);
        $params = substr($params, 0, -1);
        $params = str_getcsv($params);
        // trim away extra white space off each value
        array_walk($params, function (&$value) {
            $value = ltrim(rtrim($value));
        });
        $this->id = 'creator-' . md5($params[0]);
        $this->collection = null;
        $this->bindingType = 'creator';
        $this->key = $params[0];
        $this->type = 'creator';
        $this->humanName = isset($params[1]) && $params[1] !== 'null' && $params[1] ? $params[1] : $this->humanize($key);
        $this->collectionName = null;
        $this->group = null;
        $this->category = null;
        $this->alternateTarget = null;
        $this->defaults = null;
    }