Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to code to handle php 8.2 deprecations. #222

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/quant_api/src/Client/QuantClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ class QuantClient implements QuantClientInterface {
*/
protected $logger;

/**
* The Guzzle client.
*
* @var \GuzzleHttp\Client
*/
protected $client;

/**
* The client account.
*
Expand Down
7 changes: 7 additions & 0 deletions modules/quant_api/src/Form/SettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SettingsForm extends ConfigFormBase {

const SETTINGS = 'quant_api.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
9 changes: 8 additions & 1 deletion modules/quant_search/src/Controller/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ class Search extends ControllerBase {

const SETTINGS = 'quant_api.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down Expand Up @@ -256,7 +263,7 @@ public static function generateSearchRecord($entity, $langcode = NULL) {

foreach ($entity->getTranslationLanguages() as $code => $lang) {
$language_label = \Drupal::service('string_translation')->translate($language->getName(), [], ['langcode' => $code]);
$record["language_${code}"] = $language_label;
$record["language_{$code}"] = $language_label;
}
}

Expand Down
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/SearchEntitiesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SearchEntitiesForm extends ConfigFormBase {

const SETTINGS = 'quant_search.entities.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/SearchIndexForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SearchIndexForm extends ConfigFormBase {

const SETTINGS = 'quant_search.index.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
7 changes: 7 additions & 0 deletions modules/quant_search/src/Form/SearchPagesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ class SearchPagesForm extends ConfigFormBase {

const SETTINGS = 'quant_api.settings';

/**
* The Quant API client.
*
* @var \Drupal\quant_api\Client\QuantClientInterface
*/
protected $client;

/**
* Build the form.
*/
Expand Down
Loading