'#description'=>$this->t('The text to display for this field. You may include HTML. You may enter data from this view as per the "Replacement patterns" below.'),
'#description'=>$this->t('The text to display for this field. You may include HTML or Twig. You may enter data from this view as per the "Replacement patterns" below.'),
@@ -869,7 +869,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$output='<p>'.$this->t('You must add some additional fields to this display before using this field. These fields may be marked as <em>Exclude from display</em> if you prefer. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.').'</p>';
// We have some options, so make a list.
if(!empty($options)){
$output='<p>'.$this->t("The following tokens are available for this field. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields. If you would like to have the characters '[' and ']' use the html entity codes '%5B' or '%5D' or they will get replaced with empty space.").'</p>';
$output='<p>'.$this->t("The following Twig replacement tokens are available for this field. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.").'</p>';
foreach(array_keys($options)as$type){
if(!empty($options[$type])){
$items=array();
...
...
@@ -1229,7 +1229,7 @@ public function renderText($alter) {
$this->assertSubString($output,$random_text,format_string('Make sure the self token (!value) appears in the output (!output)',array('!value'=>$random_text,'!output'=>$output)));
$this->assertSubString($output,$random_text,format_string('Make sure the self token (!token => !value) appears in the output (!output)',[
'!value'=>$random_text,
'!output'=>$output,
'!token'=>$job_field->options['alter']['text'],
]));
// Verify the token format used in D7 and earlier does not get substituted.
$old_token='[job]';
$job_field->options['alter']['text']=$old_token;
$random_text=$this->randomMachineName();
$job_field->setTestValue($random_text);
$output=$job_field->advancedRender($row);
$this->assertSubString($output,$old_token,format_string('Make sure the old token style (!token => !value) is not changed in the output (!output)',[