Creitive\Breadcrumbs\Breadcrumbs::removeAll PHP Method

removeAll() public method

Removes all breadcrumbs.
public removeAll ( )
    public function removeAll()
    {
        $this->breadcrumbs = array();
        return $this;
    }

Usage Example

 /**
  * Tests whether `Breadcrumbs::removeAll()` works correctly.
  *
  * @dataProvider crumbsProvider
  */
 public function testRemoveAll($crumbs)
 {
     $b = new Breadcrumbs($crumbs);
     $b->removeAll();
     $this->assertTrue($b->isEmpty());
 }
All Usage Examples Of Creitive\Breadcrumbs\Breadcrumbs::removeAll