'#description' =>
$this->
t("Target of the link, such as _blank, _parent or an iframe's name. This field is rarely used."
),
'#states' =>
[ 'visible' =>
[ ':input[name="options[alter][make_link]"]' =>
['checked' => TRUE
],
],
],
];
// Get a list of the available fields and arguments for token replacement.
// Setup the tokens for fields.
$previous =
$this->
getPreviousFieldLabels();
$optgroup_arguments =
(string) $this->
t('Arguments'
);
$optgroup_fields =
(string) $this->
t('Fields'
);
foreach ($previous as $id =>
$label) { $options[$optgroup_fields]["{{
$id }}"
] =
substr(strrchr($label, ":"
), 2
);
} // Add the field to the list of options.
$options[$optgroup_fields]["{{ {
$this->options
['id'
]} }}"
] =
substr(strrchr($this->
adminLabel(), ":"
), 2
);
foreach ($this->view->display_handler->
getHandlers('argument'
) as $arg =>
$handler) { $options[$optgroup_arguments]["{{ arguments.
$arg }}"
] =
$this->
t('@argument title',
['@argument' =>
$handler->
adminLabel()]);
$options[$optgroup_arguments]["{{ raw_arguments.
$arg }}"
] =
$this->
t('@argument input',
['@argument' =>
$handler->
adminLabel()]);
}