You are here

public function WSServer::__destruct in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/WSServer.php \Drupal\wsdata\Entity\WSServer::__destruct()

File

src/Entity/WSServer.php, line 92

Class

WSServer
Defines the Web Service Server entity.

Namespace

Drupal\wsdata\Entity

Code

public function __destruct() {
  if (!empty($this->id)) {
    \Drupal::state()
      ->set('wsdata.wsserver.' . $this->id, $this->state);
  }
}