src/Form/Filterer.php
public function url(array $options) {
        if (empty($this->elementData) || filter_var($this->elementData, FILTER_VALIDATE_URL)) {
            $this->elementData = filter_var($this->elementData, FILTER_SANITIZE_URL);
            return true;
        }

        $this->addError($this->checkMessage('Value is not a valid url', $options));
        return false;
    }
public function url(array $options) {
        if (empty($this->elementData) || filter_var($this->elementData, FILTER_VALIDATE_URL)) {
            $this->elementData = filter_var($this->elementData, FILTER_SANITIZE_URL);
            return true;
        }

        $this->addError($this->checkMessage('Value is not a valid url', $options));
        return false;
    }
public function url ( array $ options ) { if ( empty ( $ this -> elementData ) || filter_var ( $ this -> elementData , FILTER_VALIDATE_URL ) ) { $ this -> elementData = filter_var ( $ this -> elementData , FILTER_SANITIZE_URL ) ; return true ; } $ this -> addError ( $ this -> checkMessage ( 'Value is not a valid url' , $ options ) ) ; return false ; }
Checks if the values of the element is a valid url
@param string $name Name of the element to filter
@param  array $options Keys may include [message]
@return boolean
Checks if the values of the element is a valid url