t('Views bulk operations'), 'help' => t("Process entities returned by the view with Views Bulk Operations' actions."), 'field' => [ 'id' => 'views_bulk_operations_bulk_form', ], ]; } /** * Implements hook_help(). */ function views_bulk_operations_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.views_bulk_operations': $filepath = dirname(__FILE__) . '/README.txt'; if (file_exists($filepath)) { $readme = file_get_contents($filepath); $output = '
' . $readme . '
'; return $output; } } } /** * Implements hook_preprocess_THEME(). */ function views_bulk_operations_preprocess_views_view_table(&$variables) { if (!empty($variables['view']->style_plugin->options['views_bulk_operations_enabled'])) { // Add module own class to improve resistance to theme overrides. $variables['attributes']['class'][] = 'vbo-table'; } }