You are here

public function ApiTokenBase::fallback in API Tokens 8.2

Same name and namespace in other branches
  1. 8 src/ApiTokenBase.php \Drupal\api_tokens\ApiTokenBase::fallback()

Returns a build to replace the API token with in case of validation fail.

Return value

array A renderable array.

Overrides ApiTokenPluginInterface::fallback

File

src/ApiTokenBase.php, line 309

Class

ApiTokenBase
Provides a base class for the API token plugins.

Namespace

Drupal\api_tokens

Code

public function fallback() {
  return [];
}