You are here

public function WSServer::getDefaultMethod in Web Service Data 8

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

Return the default method if called.

Overrides WSServerInterface::getDefaultMethod

File

src/Entity/WSServer.php, line 108

Class

WSServer
Defines the Web Service Server entity.

Namespace

Drupal\wsdata\Entity

Code

public function getDefaultMethod() {
  $methods = array_keys($this
    ->getMethods());
  return reset($methods);
}