Creitive\Breadcrumbs\Breadcrumbs::isEmpty PHP Method

isEmpty() public method

Checks whether there are any breadcrumbs added yet.
public isEmpty ( ) : boolean
return boolean
    public function isEmpty()
    {
        return $this->count() === 0;
    }

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::isEmpty