getCustomerId(); $data = []; if ($customerId) { $deleteConfirmMsg = __("Are you sure you want to revoke the customer\'s tokens?"); $data = [ 'label' => __('Force Sign-In'), 'class' => 'invalidate-token', 'on_click' => 'deleteConfirm(\'' . $deleteConfirmMsg . '\', \'' . $this->getInvalidateTokenUrl() . '\')', 'sort_order' => 65, ]; } return $data; } /** * @return string */ public function getInvalidateTokenUrl() { return $this->getUrl('customer/customer/invalidateToken', ['customer_id' => $this->getCustomerId()]); } }