src/File/File.php
protected function getVars($content, $details = [])
    {
        // Build defaults
        $defaults = [
            'title' => Translate::t('file.title', [], 'filefield'),
            'file' => false,
        ];

        // Build defaults data
        $vars = array_merge($defaults, $content);

        // Update vars
        $this->getModel()->setVars($vars);
    }
protected function getVars($content, $details = [])
    {
        // Build defaults
        $defaults = [
            'title' => Translate::t('file.title', [], 'filefield'),
            'file' => false,
        ];

        // Build defaults data
        $vars = array_merge($defaults, $content);

        // Update vars
        $this->getModel()->setVars($vars);
    }
Prepare HTML component.

@param array $content
@param array $details

@since 0.0.1