public function FullName::init in Ubercart 8.4
Override init function to provide generic option to link to user.
Overrides FieldPluginBase::init
File
- uc_order/
src/ Plugin/ views/ field/ FullName.php, line 23
Class
- FullName
- Field handler to provide full names.
Namespace
Drupal\uc_order\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
if (!empty($this->options['link_to_user'])) {
$this->additional_fields['uid'] = [
'table' => 'uc_orders',
'field' => 'uid',
];
}
}