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;
    }
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;
    }
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 ; }
Returns nested reference data for a given model class, if possible.

@param array  $options
@param string $modelClass
@return array
Returns nested reference data for a given model class if possible .