Noherczeg\Breadcrumb\Segment::enable PHP Method

enable() public method

The exact opposite of the above
public enable ( )
    public function enable()
    {
        $this->disabled = false;
    }

Usage Example

Exemplo n.º 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'));
 }