You are here

public function WSServer::__destruct in Web Service Data 2.0.x

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

File

src/Entity/WSServer.php, line 100

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);
  }
}