I am using the following code for a block.
public function build() {
$current_client = \Drupal::service('user.private_tempstore')->get('epensions');
$build = [];
$build['client'] = array(
'#markup' => $current_client->get('scheme_name').' : '. $current_client->get('sponsor_name'),
);
$build['change_link'] = array(
'#title' => $this->t('Change'),
'#prefix' => '<br>',
'#type' => 'link',
'#url' => Url::fromRoute('epensions.sponsor.selector')
);
$build['#cache']['max-age'] = 0;
return $build;
}
I want the results to appear to the right of the account details in Bootstrap and show the same way "My account" & "Log Out" appears.
Kindly help.