original_string: public function getFormFields()
      {
          if (!$theme = CmsTheme::load($this->theme)) {
              throw new Exception(Lang::get('Unable to find theme with name :name', $this->theme));
          }
  
          $config = $theme->getFormConfig();
  
          return array_get($config, 'fields', []) +
              array_get($config, 'tabs.fields', []) +
              array_get($config, 'secondaryTabs.fields', []);
      }
code: public function getFormFields()
      {
          if (!$theme = CmsTheme::load($this->theme)) {
              throw new Exception(Lang::get('Unable to find theme with name :name', $this->theme));
          }
  
          $config = $theme->getFormConfig();
  
          return array_get($config, 'fields', []) +
              array_get($config, 'tabs.fields', []) +
              array_get($config, 'secondaryTabs.fields', []);
      }
code_tokens: public function getFormFields ( ) { if ( ! $ theme = CmsTheme :: load ( $ this -> theme ) ) { throw new Exception ( Lang :: get ( 'Unable to find theme with name :name' , $ this -> theme ) ) ; } $ config = $ theme -> getFormConfig ( ) ; return array_get ( $ config , 'fields' , [ ] ) + array_get ( $ config , 'tabs.fields' , [ ] ) + array_get ( $ config , 'secondaryTabs.fields' , [ ] ) ; }
docstring: Returns all fields defined for this model, based on form field definitions.
  @return array
docstring_tokens: Returns all fields defined for this model based on form field definitions .