You are here

protected function HttpConfigRequestForm::getValueCallback in HTTP Client Manager 8

Get value callback.

Parameters

\Guzzle\Service\Description\Parameter $param: A command parameter object.

Return value

bool|string A callback or FALSE.

1 call to HttpConfigRequestForm::getValueCallback()
HttpConfigRequestForm::arrayValue in src/Form/HttpConfigRequestForm.php
Value callback: converts strings to array values.

File

src/Form/HttpConfigRequestForm.php, line 202

Class

HttpConfigRequestForm
Class HttpConfigRequestForm.

Namespace

Drupal\http_client_manager\Form

Code

protected function getValueCallback(Parameter $param) {
  $callback = $param
    ->getItems()
    ->getType() . 'Value';
  return method_exists($this, $callback) ? $callback : FALSE;
}