You are here

public function Breakpoint::enable in Breakpoints 8

Shortcut function to enable a breakpoint and save it.

Overrides ConfigEntityBase::enable

See also

breakpoint_action_confirm_submit()

File

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

Class

Breakpoint
Defines the Breakpoint entity.

Namespace

Drupal\breakpoint

Code

public function enable() {
  if (!$this->status) {
    $this->status = TRUE;
    $this
      ->save();
  }
}