Neos\Flow\Mvc\Routing\DynamicRoutePart::resolveValue PHP Method

resolveValue() protected method

If $value is empty, this method checks whether a default value exists. This method can be overridden by custom RoutePartHandlers to implement custom resolving mechanisms.
protected resolveValue ( mixed $value ) : boolean
$value mixed value to resolve
return boolean TRUE if value could be resolved successfully, otherwise FALSE.
    protected function resolveValue($value)
    {
        if ($value === null) {
            return false;
        }
        if (is_object($value)) {
            $value = $this->persistenceManager->getIdentifierByObject($value);
            if ($value === null || !is_string($value) && !is_integer($value)) {
                return false;
            }
        }
        $this->value = rawurlencode($value);
        if ($this->lowerCase) {
            $this->value = strtolower($this->value);
        }
        return true;
    }