src/Charcoal/Admin/Action/ElfinderConnectorAction.php
public function buildConnectorOptions(array $extraOptions = [])
    {
        $options = [
            'debug' => false,
            'roots' => $this->getCurrentRoots()
        ];

        $adminOptions = $this->getAdminConnectorOptions();
        $adminOptions = $this->parseAdminOptionsForConnectorBuild($adminOptions);
        $extraOptions = $this->parseExtraOptionsForConnectorBuild($extraOptions);

        $options = $this->mergeConnectorOptions($options, $adminOptions);
        $options = $this->mergeConnectorOptions($options, $extraOptions);

        if (isset($options['bind'])) {
            $options['bind'] = $this->resolveCallbacksForBindOption($options['bind']);
        }

        $this->elfinderOptions = $options;

        return $options;
    }
public function buildConnectorOptions(array $extraOptions = [])
    {
        $options = [
            'debug' => false,
            'roots' => $this->getCurrentRoots()
        ];

        $adminOptions = $this->getAdminConnectorOptions();
        $adminOptions = $this->parseAdminOptionsForConnectorBuild($adminOptions);
        $extraOptions = $this->parseExtraOptionsForConnectorBuild($extraOptions);

        $options = $this->mergeConnectorOptions($options, $adminOptions);
        $options = $this->mergeConnectorOptions($options, $extraOptions);

        if (isset($options['bind'])) {
            $options['bind'] = $this->resolveCallbacksForBindOption($options['bind']);
        }

        $this->elfinderOptions = $options;

        return $options;
    }
public function buildConnectorOptions ( array $ extraOptions = [ ] ) { $ options = [ 'debug' => false , 'roots' => $ this -> getCurrentRoots ( ) ] ; $ adminOptions = $ this -> getAdminConnectorOptions ( ) ; $ adminOptions = $ this -> parseAdminOptionsForConnectorBuild ( $ adminOptions ) ; $ extraOptions = $ this -> parseExtraOptionsForConnectorBuild ( $ extraOptions ) ; $ options = $ this -> mergeConnectorOptions ( $ options , $ adminOptions ) ; $ options = $ this -> mergeConnectorOptions ( $ options , $ extraOptions ) ; if ( isset ( $ options [ 'bind' ] ) ) { $ options [ 'bind' ] = $ this -> resolveCallbacksForBindOption ( $ options [ 'bind' ] ) ; } $ this -> elfinderOptions = $ options ; return $ options ; }
Build and retrieve the elFinder Connector options.

@link    https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options
Documentation for connector options.
@example https://gist.github.com/mcaskill/5944478b1894a5bf1349bfa699387cd4
The Connector can be customized by defining a "elfinder" structure in
your application's admin configuration.

@param  array $extraOptions Additional settings to pass to elFinder.
@return array
Build and retrieve the elFinder Connector options .