public function WSServer::__destruct in Web Service Data 2.0.x
Same name and namespace in other branches
- 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\EntityCode
public function __destruct() {
if (!empty($this->id)) {
\Drupal::state()
->set('wsdata.wsserver.' . $this->id, $this->state);
}
}