You are here

public function Breakpoint::disable in Breakpoints 8

Shortcut function to disable a breakpoint and save it.

Overrides ConfigEntityBase::disable

See also

breakpoint_action_confirm_submit()

File

lib/Drupal/breakpoint/Breakpoint.php, line 234
Definition of Drupal\breakpoint\Breakpoint.

Class

Breakpoint
Defines the Breakpoint entity.

Namespace

Drupal\breakpoint

Code

public function disable() {
  if ($this->status) {
    $this->status = FALSE;
    $this
      ->save();
  }
}