protected function getReferenceSource(Model $model, $source = null)
    {
        if (null === $source) {
            // Get model information for the model
            $information = $this->getInformationRepository()->getByModel($model);

            if ($information && $information->reference->source) {
                $source = $information->reference->source;
            }
        }

        if ( ! $source) return null;

        return $source;
    }
protected function getReferenceSource(Model $model, $source = null)
    {
        if (null === $source) {
            // Get model information for the model
            $information = $this->getInformationRepository()->getByModel($model);

            if ($information && $information->reference->source) {
                $source = $information->reference->source;
            }
        }

        if ( ! $source) return null;

        return $source;
    }
protected function getReferenceSource ( Model $ model , $ source = null ) { if ( null === $ source ) { // Get model information for the model $ information = $ this -> getInformationRepository ( ) -> getByModel ( $ model ) ; if ( $ information && $ information -> reference -> source ) { $ source = $ information -> reference -> source ; } } if ( ! $ source ) return null ; return $ source ; }
Returns the source to feed to the reference strategy.

@param Model       $model
@param string|null $source
@return string|null
Returns the source to feed to the reference strategy .