protected function setupScript($script)
    {
        $method = 'setupScriptFor'.ucfirst($this->viewMode).'View';

        call_user_func([$this, $method], $script);
    }
protected function setupScript($script)
    {
        $method = 'setupScriptFor'.ucfirst($this->viewMode).'View';

        call_user_func([$this, $method], $script);
    }
protected function setupScript ( $ script ) { $ method = 'setupScriptFor' . ucfirst ( $ this -> viewMode ) . 'View' ; call_user_func ( [ $ this , $ method ] , $ script ) ; }
Setup script for this field in different view mode.

@param string $script

@return void
Setup script for this field in different view mode .