You are here

public function XmlRpcTrait::getEndpoint in xmlrpc 8

Returns the URI of the server XML-RPC endpoint.

Return value

string The server endpoint URI.

10 calls to XmlRpcTrait::getEndpoint()
XmlRpcExampleClientForm::submitAdd in xmlrpc_example/src/Form/XmlRpcExampleClientForm.php
Submit handler to query xmlrpc_example.add.
XmlRpcExampleClientForm::submitAddSubtract in xmlrpc_example/src/Form/XmlRpcExampleClientForm.php
Submit a multicall request.
XmlRpcExampleClientForm::submitInformation in xmlrpc_example/src/Form/XmlRpcExampleClientForm.php
Submit handler to query system.listMethods.
XmlRpcExampleClientForm::submitSubtract in xmlrpc_example/src/Form/XmlRpcExampleClientForm.php
Submit handler to query xmlrpc_example.subtract.
XmlRpcExampleController::info in xmlrpc_example/src/Controller/XmlRpcExampleController.php
Constructs a page with info about the XML-RPC example.

... See full list

File

src/XmlRpcTrait.php, line 25

Class

XmlRpcTrait
XmlRpcTrait provides the getEndpoint() method used in tests and examples.

Namespace

Drupal\xmlrpc

Code

public function getEndpoint() {
  if (!isset($this->endPoint)) {
    $uri = Url::fromUri($GLOBALS['base_url'] . '/xmlrpc');
    $this->endPoint = $uri
      ->toUriString();
  }
  return $this->endPoint;
}