eZ\Publish\Core\FieldType\Url\UrlStorage\Gateway::insertUrl PHP Method

insertUrl() abstract public method

Inserts a new $url and returns its id.
abstract public insertUrl ( string $url ) : integer | string
$url string The URL to insert in the database
return integer | string
    public abstract function insertUrl($url);

Usage Example

Beispiel #1
0
 /**
  * Inserts a new $url and returns its id.
  *
  * @param string $url The URL to insert in the database
  *
  * @return int|string
  */
 public function insertUrl($url)
 {
     return $this->urlGateway->insertUrl($url);
 }