public function WSServer::setEndpoint in Web Service Data 8
Same name and namespace in other branches
- 2.0.x src/Entity/WSServer.php \Drupal\wsdata\Entity\WSServer::setEndpoint()
Set the endpoint.
Overrides WSServerInterface::setEndpoint
1 call to WSServer::setEndpoint()
- WSServer::__construct in src/
Entity/ WSServer.php - Constructs an Entity object.
File
- src/
Entity/ WSServer.php, line 116
Class
- WSServer
- Defines the Web Service Server entity.
Namespace
Drupal\wsdata\EntityCode
public function setEndpoint($endpoint) {
if (isset($this->state['endpoint'])) {
$this->overrides['endpoint'] = $endpoint;
$this->endpoint = $this->state['endpoint'];
}
else {
$this->endpoint = $endpoint;
}
}