You are here

public function EdgeKeyTypeInterface::getEndpointType in Apigee Edge 8

Gets the API endpoint type (default or custom).

It returns "default" on a public cloud instance, otherwise "custom".

Parameters

\Drupal\key\KeyInterface $key: The key entity.

Return value

string The API endpoint type.

Deprecated

in apigee_edge:8.x-1.2 and is removed from apigee_edge:8.x-2.0. Use getInstanceType() instead.

See also

https://github.com/apigee/apigee-edge-drupal/issues/268

1 method overrides EdgeKeyTypeInterface::getEndpointType()
EdgeKeyTypeBase::getEndpointType in src/Plugin/EdgeKeyTypeBase.php
Gets the API endpoint type (default or custom).

File

src/Plugin/EdgeKeyTypeInterface.php, line 145

Class

EdgeKeyTypeInterface
Defines an interface for Apigee Edge Key Type plugins.

Namespace

Drupal\apigee_edge\Plugin

Code

public function getEndpointType(KeyInterface $key) : string;