Noherczeg\Breadcrumb\Segment::disable PHP Method

disable() public method

Basically makes the builder process ignore the link generation if it is disabled.
public disable ( )
    public function disable()
    {
        $this->disabled = true;
    }

Usage Example

Beispiel #1
0
 /**
  * @Test
  */
 public function testTogglers()
 {
     $this->segment->disable();
     $this->assertEquals(true, $this->segment->get('disabled'));
     $this->segment->enable();
     $this->assertEquals(false, $this->segment->get('disabled'));
 }