public function getValueMappedToTemplate()
    {
        if ($this->submitted) {
            return $this->submittedValue;
        }

        if ($this->mapper) {
            return $this->mapper->mapToFrom($this->getValue());
        }

        return $this->getValue();
    }
public function getValueMappedToTemplate()
    {
        if ($this->submitted) {
            return $this->submittedValue;
        }

        if ($this->mapper) {
            return $this->mapper->mapToFrom($this->getValue());
        }

        return $this->getValue();
    }
public function getValueMappedToTemplate ( ) { if ( $ this -> submitted ) { return $ this -> submittedValue ; } if ( $ this -> mapper ) { return $ this -> mapper -> mapToFrom ( $ this -> getValue ( ) ) ; } return $ this -> getValue ( ) ; }
Get the current value and map it so it can be printed into the template.

If the field is NOT submitted, it will return the subjects value processed by the mapper.

If the field IS submitted, this will return the value received with the request.

@return mixed
Get the current value and map it so it can be printed into the template .