original_string: protected function getNestedReferenceFieldOptionData(array $options, $modelClass)
      {
          $data = array_get($options, 'models.' . $modelClass, false);
  
          if (false === $data || ! is_array($data)) {
              // If we could not retrieve the model data by key,
              // it was either omitted are set as a string value (non-assiative).
              // In either case, there is no specified reference data.
  
              return [];
          }
  
          return $data;
      }
code: protected function getNestedReferenceFieldOptionData(array $options, $modelClass)
      {
          $data = array_get($options, 'models.' . $modelClass, false);
  
          if (false === $data || ! is_array($data)) {
              // If we could not retrieve the model data by key,
              // it was either omitted are set as a string value (non-assiative).
              // In either case, there is no specified reference data.
  
              return [];
          }
  
          return $data;
      }
code_tokens: protected function getNestedReferenceFieldOptionData ( array $ options , $ modelClass ) { $ data = array_get ( $ options , 'models.' . $ modelClass , false ) ; if ( false === $ data || ! is_array ( $ data ) ) { // If we could not retrieve the model data by key, // it was either omitted are set as a string value (non-assiative). // In either case, there is no specified reference data. return [ ] ; } return $ data ; }
docstring: Returns nested reference data for a given model class, if possible.
  
  @param array  $options
  @param string $modelClass
  @return array
docstring_tokens: Returns nested reference data for a given model class if possible .