dispatch() public method

Get the action type from the options.
public dispatch ( array $options ) : string
$options array
return string
Beispiel #1
0
 /**
  * Generates a valid URL for the menu item.
  *
  * @return string
  */
 public function url()
 {
     if (!is_null($this->link)) {
         if ($this->link->href) {
             return $this->link->href;
         }
         return $this->builder->dispatch($this->link->path);
     }
 }