original_string: public function onLoadAttachmentConfig()
      {
          $fileModel = $this->getRelationModel();
          if (($fileId = post('file_id')) && ($file = $fileModel::find($fileId))) {
              $file = $this->decorateFileAttributes($file);
  
              $this->vars['file'] = $file;
              $this->vars['displayMode'] = $this->getDisplayMode();
              $this->vars['cssDimensions'] = $this->getCssDimensions();
              $this->vars['relationManageId'] = post('manage_id');
              $this->vars['relationField'] = post('_relation_field');
  
              return $this->makePartial('config_form');
          }
  
          throw new ApplicationException('Unable to find file, it may no longer exist');
      }
code: public function onLoadAttachmentConfig()
      {
          $fileModel = $this->getRelationModel();
          if (($fileId = post('file_id')) && ($file = $fileModel::find($fileId))) {
              $file = $this->decorateFileAttributes($file);
  
              $this->vars['file'] = $file;
              $this->vars['displayMode'] = $this->getDisplayMode();
              $this->vars['cssDimensions'] = $this->getCssDimensions();
              $this->vars['relationManageId'] = post('manage_id');
              $this->vars['relationField'] = post('_relation_field');
  
              return $this->makePartial('config_form');
          }
  
          throw new ApplicationException('Unable to find file, it may no longer exist');
      }
code_tokens: public function onLoadAttachmentConfig ( ) { $ fileModel = $ this -> getRelationModel ( ) ; if ( ( $ fileId = post ( 'file_id' ) ) && ( $ file = $ fileModel :: find ( $ fileId ) ) ) { $ file = $ this -> decorateFileAttributes ( $ file ) ; $ this -> vars [ 'file' ] = $ file ; $ this -> vars [ 'displayMode' ] = $ this -> getDisplayMode ( ) ; $ this -> vars [ 'cssDimensions' ] = $ this -> getCssDimensions ( ) ; $ this -> vars [ 'relationManageId' ] = post ( 'manage_id' ) ; $ this -> vars [ 'relationField' ] = post ( '_relation_field' ) ; return $ this -> makePartial ( 'config_form' ) ; } throw new ApplicationException ( 'Unable to find file, it may no longer exist' ) ; }
docstring: Loads the configuration form for an attachment, allowing title and description to be set.
docstring_tokens: Loads the configuration form for an attachment allowing title and description to be set .