Skip to content
Snippets Groups Projects

Automated Drupal 10 compatibility fixes with phpcs

Merged Shivam Tiwari requested to merge issue/tripadvisor_integration-3299348:8.x-1.x into 8.x-1.x
6 files
+ 26
26
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -45,23 +45,23 @@ class TripAdvisorIntegrationAdminForm extends ConfigFormBase {
'#markup' => '<p>' . $this->t('Please read the <a href="https://developer-tripadvisor.com/content-api/" target="_blank">Content API Documentation</a> to find out how obtain an API key and what data is returned from the API.') . '</p>',
];
$form['tripadvisor_integration_api_key'] = array(
$form['tripadvisor_integration_api_key'] = [
'#type' => 'textfield',
'#title' => t('API Key'),
'#default_value' => $admin_settings->get('tripadvisor_integration_api_key'),
'#size' => 35,
'#maxlength' => 35,
'#description' => t('This is TripAdvisor API key that will be used to connect to the Content API.'),
);
];
$form['tripadvisor_integration_cache_expiration'] = array(
$form['tripadvisor_integration_cache_expiration'] = [
'#type' => 'textfield',
'#title' => t('Cache Expiration'),
'#default_value' => $admin_settings->get('tripadvisor_integration_cache_expiration') ? $admin_settings->get('tripadvisor_integration_cache_expiration') : 3600,
'#size' => 30,
'#maxlength' => 30,
'#description' => t('Data from the TripAdvisor Content API will be cached. Set the minimum cache lifetime - default is one hour.'),
);
];
return parent::buildForm($form, $form_state);
}
Loading