You are here

public function Context::disable in Context 8

Same name and namespace in other branches
  1. 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::disable()

Disable context.

Overrides ConfigEntityBase::disable

File

src/Entity/Context.php, line 365

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

public function disable() {
  $this->disabled = !$this
    ->disabled();
  $this
    ->save();
}