Allows the users to create a list of custom title - link segments
示例#1
0
 /**
  * Registers a list of title => link pairs with the package.
  *
  * All of the given data will be used as-is no translation, no URL conversion
  * will be applied!
  *
  * @param array $rawArray Array with title => link pairs
  * @return \Noherczeg\Breadcrumb\Breadcrumb
  */
 public function map(array $rawArray)
 {
     $map = new Map($rawArray);
     $this->segments = $map->getSegments();
     return $this;
 }