Skip to content
Snippets Groups Projects
Commit e607d32c authored by git's avatar git Committed by Kevin Kaland
Browse files

Issue #2854456 by Znak, krina.addweb: $this->t() should be used instead of t() for Drupal 8 version

parent 54d38d58
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,9 @@ class FillPdfFormFieldViewsData extends EntityViewsData {
public function getViewsData() {
$data = parent::getViewsData();
$data['fillpdf_fields']['table']['group'] = $data['fillpdf_fields']['table']['base']['title'] = t('FillPDF form fields');
$data['fillpdf_fields']['table']['group'] = $data['fillpdf_fields']['table']['base']['title'] = $this->t('FillPDF form fields');
$data['fillpdf_fields']['table']['base']['help'] = t('FillPDF form fields represent fields in an uploaded FillPDF PDF.');
$data['fillpdf_fields']['table']['base']['help'] = $this->t('FillPDF form fields represent fields in an uploaded FillPDF PDF.');
return $data;
}
......
......@@ -17,9 +17,9 @@ class FillPdfFormViewsData extends EntityViewsData {
public function getViewsData() {
$data = parent::getViewsData();
$data['fillpdf_forms']['table']['group'] = $data['fillpdf_forms']['table']['base']['title'] = t('FillPDF forms');
$data['fillpdf_forms']['table']['group'] = $data['fillpdf_forms']['table']['base']['title'] = $this->t('FillPDF forms');
$data['fillpdf_forms']['table']['base']['help'] = t('FillPDF forms are uploaded on the FillPDF administration page and are used by the FillPDF module.');
$data['fillpdf_forms']['table']['base']['help'] = $this->t('FillPDF forms are uploaded on the FillPDF administration page and are used by the FillPDF module.');
return $data;
}
......
......@@ -37,10 +37,10 @@ class FillPdfFormExportForm extends EntityForm {
$form = array();
$form['export'] = array(
'#type' => 'textarea',
'#title' => t('FillPDF form configuration and mappings'),
'#title' => $this->t('FillPDF form configuration and mappings'),
'#default_value' => $code,
'#rows' => 30,
'#description' => t('Copy this code and then on the site you want to import to, go to the Edit page for the FillPDF form for which you want to import these mappings, and paste it in there.'),
'#description' => $this->t('Copy this code and then on the site you want to import to, go to the Edit page for the FillPDF form for which you want to import these mappings, and paste it in there.'),
'#attributes' => array(
'style' => 'width: 97%;',
),
......
......@@ -30,7 +30,7 @@ class FillPdfFormImportForm extends EntityForm {
$form['paste'] = [
'#type' => 'details',
'#title' => t('Paste code'),
'#title' => $this->t('Paste code'),
'#open' => TRUE,
];
$form['paste']['code'] = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment