code/LeftAndMain.php
public function getClientConfig()
    {
        // Allows the section name to be overridden in config
        $name = $this->config()->get('section_name');

        if (!$name) {
            $name = static::class;
        }

        $clientConfig = [
            // Trim leading/trailing slash to make it easier to concatenate URL
            // and use in routing definitions.
            'name' => $name,
            'url' => trim($this->Link(), '/'),
            'form' => [
                'EditorExternalLink' => [
                    'schemaUrl' => $this->Link('methodSchema/Modals/EditorExternalLink'),
                ],
                'EditorEmailLink' => [
                    'schemaUrl' => $this->Link('methodSchema/Modals/EditorEmailLink'),
                ],
            ],
        ];

        $this->extend('updateClientConfig', $clientConfig);

        return $clientConfig;
    }
public function getClientConfig()
    {
        // Allows the section name to be overridden in config
        $name = $this->config()->get('section_name');

        if (!$name) {
            $name = static::class;
        }

        $clientConfig = [
            // Trim leading/trailing slash to make it easier to concatenate URL
            // and use in routing definitions.
            'name' => $name,
            'url' => trim($this->Link(), '/'),
            'form' => [
                'EditorExternalLink' => [
                    'schemaUrl' => $this->Link('methodSchema/Modals/EditorExternalLink'),
                ],
                'EditorEmailLink' => [
                    'schemaUrl' => $this->Link('methodSchema/Modals/EditorEmailLink'),
                ],
            ],
        ];

        $this->extend('updateClientConfig', $clientConfig);

        return $clientConfig;
    }
public function getClientConfig ( ) { // Allows the section name to be overridden in config $ name = $ this -> config ( ) -> get ( 'section_name' ) ; if ( ! $ name ) { $ name = static :: class ; } $ clientConfig = [ // Trim leading/trailing slash to make it easier to concatenate URL // and use in routing definitions. 'name' => $ name , 'url' => trim ( $ this -> Link ( ) , '/' ) , 'form' => [ 'EditorExternalLink' => [ 'schemaUrl' => $ this -> Link ( 'methodSchema/Modals/EditorExternalLink' ) , ] , 'EditorEmailLink' => [ 'schemaUrl' => $ this -> Link ( 'methodSchema/Modals/EditorEmailLink' ) , ] , ] , ] ; $ this -> extend ( 'updateClientConfig' , $ clientConfig ) ; return $ clientConfig ; }
Returns configuration required by the client app.

@return array

WARNING: Experimental API
Returns configuration required by the client app .