You are here

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

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

Return the default method if called.

Overrides WSServerInterface::getDefaultMethod

File

src/Entity/WSServer.php, line 116

Class

WSServer
Defines the Web Service Server entity.

Namespace

Drupal\wsdata\Entity

Code

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