From 000a304057063ca3aea27651effd07bda198236e Mon Sep 17 00:00:00 2001
From: Malcolm Young <malcolm.young@capgemini.com>
Date: Mon, 12 Oct 2015 09:10:55 +0100
Subject: [PATCH] initial module and info created by Drupal Console

---
 google_cse.info.yml |  7 +++++++
 google_cse.module   | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 google_cse.info.yml
 create mode 100644 google_cse.module

diff --git a/google_cse.info.yml b/google_cse.info.yml
new file mode 100644
index 0000000..83db453
--- /dev/null
+++ b/google_cse.info.yml
@@ -0,0 +1,7 @@
+name: Google Custom Search Engine
+type: module
+description: Use Google Custom Search to search your site and/or any other sites.
+core: 8.x
+package: Search
+dependencies:
+  - search
diff --git a/google_cse.module b/google_cse.module
new file mode 100644
index 0000000..e6c9f35
--- /dev/null
+++ b/google_cse.module
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
+ * Contains google_cse.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function google_cse_help($route_name, RouteMatchInterface $route_match) {
+  switch ($route_name) {
+    // Main module help for the google_cse module.
+    case 'help.page.google_cse':
+      $output = '';
+      $output .= '<h3>' . t('About') . '</h3>';
+      $output .= '<p>' . t('Use Google Custom Search to search your site and/or any other sites.') . '</p>';
+      return $output;
+
+    default:
+  }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function google_cse_theme() {
+  $theme = [];
+
+  return $theme;
+}
-- 
GitLab