You are here

public function IndexAddFieldsForm::getParameter in Search API 8

Retrieves a single page request parameter.

Parameters

string $name: The name of the parameter.

string|null $default: The value to return if the parameter isn't present.

Return value

string|null The parameter value.

1 call to IndexAddFieldsForm::getParameter()
IndexAddFieldsForm::getDatasourceListItem in src/Form/IndexAddFieldsForm.php
Creates a list item for one datasource.

File

src/Form/IndexAddFieldsForm.php, line 154

Class

IndexAddFieldsForm
Provides a form for adding fields to a search index.

Namespace

Drupal\search_api\Form

Code

public function getParameter($name, $default = NULL) {
  return $this->parameters[$name] ?? $default;
}