Devise\Pages\Interpreter\TagManager::restoreFieldInstance PHP Method

restoreFieldInstance() protected method

If there is a field instance that has been deleted, then we restore it cuz we need it again
protected restoreFieldInstance ( array $tag ) : DvsField
$tag array
return DvsField
    protected function restoreFieldInstance($tag)
    {
        $field = $this->DvsField->newInstance()->onlyTrashed()->where('key', $tag['key'])->where('collection_instance_id', null)->where('page_version_id', $this->pageVersionId)->first();
        if ($field) {
            $field->restore();
        }
        return $field;
    }