getSegments() public method

public getSegments ( ) : array
return array An array of Segments
コード例 #1
0
ファイル: Breadcrumb.php プロジェクト: noherczeg/breadcrumb
 /**
  * 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;
 }