protected function getReferenceValue(Model $model, $strategy = null, $source = null)
    {
        $strategy = $this->determineModelReferenceStrategy($model, $strategy);

        // If we have no strategy at all to fall back on, use a hard-coded reference
        if ( ! $strategy) {
            return $this->getReferenceFallback($model);
        }

        if ( ! $source) {
            $source = $this->determineModelReferenceSource($model);
        }

        return $strategy->render($model, $source);
    }
protected function getReferenceValue(Model $model, $strategy = null, $source = null)
    {
        $strategy = $this->determineModelReferenceStrategy($model, $strategy);

        // If we have no strategy at all to fall back on, use a hard-coded reference
        if ( ! $strategy) {
            return $this->getReferenceFallback($model);
        }

        if ( ! $source) {
            $source = $this->determineModelReferenceSource($model);
        }

        return $strategy->render($model, $source);
    }
protected function getReferenceValue ( Model $ model , $ strategy = null , $ source = null ) { $ strategy = $ this -> determineModelReferenceStrategy ( $ model , $ strategy ) ; // If we have no strategy at all to fall back on, use a hard-coded reference if ( ! $ strategy ) { return $ this -> getReferenceFallback ( $ model ) ; } if ( ! $ source ) { $ source = $ this -> determineModelReferenceSource ( $ model ) ; } return $ strategy -> render ( $ model , $ source ) ; }
Returns the model reference as a string.

@param Model       $model
@param string|null $strategy optional reference strategy that overrides default
@param string|null $source   optional reference source that overrides default
@return string
Returns the model reference as a string .