Commit 68c01866 authored by João Ventura's avatar João Ventura Committed by Joao Ventura
Browse files

Issue #3137429 by mo_farhaz, jcnventura: t() calls should be avoided in classes

parent 0c1d233b
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Form/HubspotSettingsForm.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class HubspotSettingsForm extends ConfigFormBase {
   * {@inheritdoc}
   */
  public function buildForm(array $form, FormStateInterface $form_state) {
    $config = \Drupal::config('hubspot_forms.settings');
    $config = $this->config('hubspot_forms.settings');

    $form['hubspot_api_key'] = [
      '#type'          => 'textfield',
+2 −2
Changes for src/Plugin/CKEditorPlugin/HubspotForms.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class HubspotForms extends PluginBase implements CKEditorPluginInterface, CKEdit
  public function getButtons() {
    return [
      'hubspot_forms' => [
        'label' => t('Hubspot Forms'),
        'label' => $this->t('Hubspot Forms'),
        'image' => drupal_get_path('module', 'hubspot_forms') . '/assets/icon.png',
      ],
    ];
@@ -64,7 +64,7 @@ class HubspotForms extends PluginBase implements CKEditorPluginInterface, CKEdit
   */
  public function getConfig(Editor $editor) {
    return [
      'hubspot_forms_dialog_title' => t('Hubspot Forms'),
      'hubspot_forms_dialog_title' => $this->t('Hubspot Forms'),
    ];
  }