Skip to content
Snippets Groups Projects
Commit 987e3f56 authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge branch 'feature/ISTWCMS-5754-ebremner-csv-menu-report' of...

Merge branch 'feature/ISTWCMS-5754-ebremner-csv-menu-report' of https://git.uwaterloo.ca/wcms/uw_cfg_common into feature/ISTWCMS-5754-ebremner-csv-menu-report
parents 38ffc6dc fba73dae
No related branches found
No related tags found
1 merge request!270Feature/istwcms 5754 ebremner csv menu report
...@@ -45,7 +45,8 @@ class UwDownloadCsvController extends ControllerBase { ...@@ -45,7 +45,8 @@ class UwDownloadCsvController extends ControllerBase {
*/ */
protected $configFactory; protected $configFactory;
/** The database connection. /**
* The database connection.
* *
* @var \Drupal\Core\Database\Connection * @var \Drupal\Core\Database\Connection
*/ */
...@@ -130,7 +131,7 @@ class UwDownloadCsvController extends ControllerBase { ...@@ -130,7 +131,7 @@ class UwDownloadCsvController extends ControllerBase {
// Step through each of the nodes and get the info. // Step through each of the nodes and get the info.
foreach ($nodes as $node) { foreach ($nodes as $node) {
// Pull out the info about the node, making sure the title is CSV-safe. // Pull out the info about the node.
$data = [ $data = [
'nid' => $node->id(), 'nid' => $node->id(),
'title' => '"' . str_replace('"', '""', $node->getTitle()) . '"', 'title' => '"' . str_replace('"', '""', $node->getTitle()) . '"',
......
...@@ -44,7 +44,7 @@ uw_cfg_common.uw_content_report_csv: ...@@ -44,7 +44,7 @@ uw_cfg_common.uw_content_report_csv:
uw_cfg_common.uw_menu_report_csv: uw_cfg_common.uw_menu_report_csv:
path: '/admin/reports/uw_menu_report_csv' path: '/admin/reports/uw_menu_report_csv'
defaults: defaults:
_title: 'Download UW Menu Report (CSV)' _title: 'Download UW menu report (CSV)'
_controller: \Drupal\uw_cfg_common\Controller\UwDownloadCsvController::uwMenuReport _controller: \Drupal\uw_cfg_common\Controller\UwDownloadCsvController::uwMenuReport
requirements: requirements:
_permission: 'view UW CSV reports' _permission: 'view UW CSV reports'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment