Skip to content

Commit

Permalink
OTH-6: Update module name and coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
dencioabasa committed Oct 12, 2018
1 parent 1720c51 commit 6396006
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 28 deletions.
2 changes: 1 addition & 1 deletion config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module:
update: 0
user: 0
views_ui: 0
ziquid: 0
ziquid_redirects: 0
menu_link_content: 1
views: 10
standard: 1000
Expand Down
15 changes: 0 additions & 15 deletions web/modules/custom/ziquid/src/Controller/ZiquidController.php

This file was deleted.

5 changes: 0 additions & 5 deletions web/modules/custom/ziquid/ziquid.info.yml

This file was deleted.

7 changes: 0 additions & 7 deletions web/modules/custom/ziquid/ziquid.routing.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/**
* @file
* Contains \Drupal\ziquid_redirects\Controller\ZiquidRedirectController.
*/
namespace Drupal\ziquid_redirects\Controller;

use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\HttpFoundation\RedirectResponse;

/*
* Controller for custom ziquid URL redirects.
*/
class ZiquidRedirectController extends ControllerBase {
public function zoomRedirect() {
$response = new RedirectResponse('https://zoom.us/2110111973', 301);
$response->send();
return;
}
}
5 changes: 5 additions & 0 deletions web/modules/custom/ziquid_redirects/ziquid_redirects.info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: Ziquid Redirects
description: Ziquid custom URL redirects.
type: module
version: 1.0
core: 8.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ziquid:
path: '/zoom'
defaults:
_controller: '\Drupal\ziquid_redirects\Controller\ZiquidRedirectController::zoomRedirect'
_title: 'Zoom URL Redirect'
requirements:
_permission: 'access content'

0 comments on commit 6396006

Please sign in to comment.