'#links' =>
$links,
];
} /**
* Get dialog attributes if an ajax request.
*
* @return array
* The attributes array.
*/
protected function getAjaxAttributes() { if ($this->
isAjax()) { return [ 'class' =>
['use-ajax'
],
'data-dialog-type' => 'dialog',
'data-dialog-renderer' => 'off_canvas',
];
} return [];
}}