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;"];
        };

    }
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;"];
        };

    }
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;" ] ; } ; }
Return the attribute provider to provide attributes for the open links.

@see self::provideOpenLinkAttributes()

@param string $context

@return callable
Return the attribute provider to provide attributes for the open links .