Skip to content
Snippets Groups Projects
Commit c9d9baab authored by vbouchet's avatar vbouchet Committed by Chris Burge
Browse files

Issue #3349357 by vbouchet: Make field title/label translatable

parent 01edf03a
No related branches found
No related tags found
No related merge requests found
......@@ -145,24 +145,24 @@ class ManageComponentAttributesForm extends FormBase {
$form_partial_id = [
'#type' => 'textfield',
'#title' => 'ID',
'#title' => $this->t('ID'),
'#description' => $this->t('An HTML identifier unique to the page.'),
];
$form_partial_class = [
'#type' => 'textfield',
'#title' => 'Class(es)',
'#title' => $this->t('Class(es)'),
'#description' => $this->t('Classes to be applied. Multiple classes should be separated by a space.'),
'#maxlength' => 512,
];
$form_partial_style = [
'#type' => 'textfield',
'#title' => 'Style',
'#title' => $this->t('Style'),
'#description' => $this->t('Inline CSS styles. <em>In general, inline CSS styles should be avoided.</em>'),
'#maxlength' => 512,
];
$form_partial_data = [
'#type' => 'textarea',
'#title' => 'Data-* attributes',
'#title' => $this->t('Data-* attributes'),
'#description' => $this->t('Custom attributes, which are available to both CSS and JS.<br><br>Each attribute should be entered on its own line with a pipe (|) separating its name and its optional value:<br>data-test|example-value<br>data-attribute-with-no-value'),
'#maxlength' => 512,
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment