original_string: protected function applyExtraConfig($config, $field = null)
      {
          if (!$field) {
              $field = $this->field;
          }
  
          if (!$config || !isset($this->originalConfig->{$field})) {
              return;
          }
  
          if (
              !is_array($config) &&
              (!$config = @json_decode(@base64_decode($config), true))
          ) {
              return;
          }
  
          $parsedConfig = array_only($config, ['readOnly']);
          $parsedConfig['view'] = array_only($config, ['recordUrl', 'recordOnClick']);
  
          $this->originalConfig->{$field} = array_replace_recursive(
              $this->originalConfig->{$field},
              $parsedConfig
          );
      }
code: protected function applyExtraConfig($config, $field = null)
      {
          if (!$field) {
              $field = $this->field;
          }
  
          if (!$config || !isset($this->originalConfig->{$field})) {
              return;
          }
  
          if (
              !is_array($config) &&
              (!$config = @json_decode(@base64_decode($config), true))
          ) {
              return;
          }
  
          $parsedConfig = array_only($config, ['readOnly']);
          $parsedConfig['view'] = array_only($config, ['recordUrl', 'recordOnClick']);
  
          $this->originalConfig->{$field} = array_replace_recursive(
              $this->originalConfig->{$field},
              $parsedConfig
          );
      }
code_tokens: protected function applyExtraConfig ( $ config , $ field = null ) { if ( ! $ field ) { $ field = $ this -> field ; } if ( ! $ config || ! isset ( $ this -> originalConfig -> { $ field } ) ) { return ; } if ( ! is_array ( $ config ) && ( ! $ config = @ json_decode ( @ base64_decode ( $ config ) , true ) ) ) { return ; } $ parsedConfig = array_only ( $ config , [ 'readOnly' ] ) ; $ parsedConfig [ 'view' ] = array_only ( $ config , [ 'recordUrl' , 'recordOnClick' ] ) ; $ this -> originalConfig -> { $ field } = array_replace_recursive ( $ this -> originalConfig -> { $ field } , $ parsedConfig ) ; }
docstring: Apply extra configuration
docstring_tokens: Apply extra configuration