public static function actionButtons(ResultSetInterface $resultSet, Table $table, array $data) : array
    {
        $view = new View();
        list($plugin, $controller) = pluginSplit($table->getRegistryAlias());

        foreach ($resultSet as $key => $entity) {
            if (!$entity->get('model_id')) {
                $data[$key][] = '';
                continue;
            }

            $url = [
                'prefix' => false,
                'plugin' => $plugin,
                'controller' => $controller,
                'action' => 'view',
                $entity->get('model_id')
            ];
            $link = $view->Html->link('<i class="fa fa-eye"></i>', $url, [
                'title' => __('View'),
                'class' => 'btn btn-default',
                'escape' => false
            ]);

            $html = '<div class="btn-group btn-group-xs" role="group">' . $link . '</div>';

            $data[$key][] = $html;
        }

        return $data;
    }