You are here

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

Same name and namespace in other branches
  1. 8 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 124

Class

WSServer
Defines the Web Service Server entity.

Namespace

Drupal\wsdata\Entity

Code

public function setEndpoint($endpoint) {
  if (isset($this->state['endpoint'])) {
    $this->overrides['endpoint'] = $endpoint;
    $this->endpoint = $this->state['endpoint'];
  }
  else {
    $this->endpoint = $endpoint;
  }
}