protected function getAttributeProvider($context)
    {

        $extendName = $this->getContextExtendName($context);

        if ($this->hasExtension($extendName)) {
            return $this->getExtension($extendName);
        }

        return function($file) {
            return [
                'href'  =>$file->url,
                'class'=>'inline',
                'onclick'=>"window.open($(this).attr('href'), 'imgViewer','width=600,height=400'); return false;"];
        };

    }