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, 'aclResource' => 'Magento_Customer::invalidate_tokens', ]; } return $data; } /** * Get invalidate token url. * * @return string */ public function getInvalidateTokenUrl() { return $this->getUrl('customer/customer/invalidateToken', ['customer_id' => $this->getCustomerId()]); } }