Devise\Pages\Interpreter\TagManager::getInstanceForCreator PHP Метод

getInstanceForCreator() защищенный Метод

.. this doesn't really make sense, but it is here for the sake of consistency, since all the other tag types have database stuff
protected getInstanceForCreator ( array $tag ) : StdClass
$tag array
Результат StdClass
    protected function getInstanceForCreator($tag)
    {
        $creator = new \StdClass();
        $config = config('devise.model-mapping');
        $config = array_key_exists($tag['key'], $config) ? $config[$tag['key']] : [];
        $creator->id = $tag['id'];
        $creator->model_type = $tag['key'];
        $creator->defaults = $tag['defaults'] ?: new \StdClass();
        $creator->picks = array_key_exists('picks', $config) ? $config['picks'] : [];
        $creator->rules = array_key_exists('rules', $config) ? $config['rules'] : [];
        $creator->types = array_key_exists('types', $config) ? $config['types'] : [];
        return $creator;
    }