Skip to content

Commit

Permalink
Merge pull request #1392 from tripal/tv4g0-issue1391-dos-line-endings
Browse files Browse the repository at this point in the history
Tv4g0 issue1391 dos line endings
  • Loading branch information
laceysanderson committed Jan 30, 2023
2 parents 0ca5a37 + 0464d0d commit 9a72fde
Show file tree
Hide file tree
Showing 15 changed files with 5,278 additions and 5,278 deletions.
46 changes: 23 additions & 23 deletions tripal/src/Controller/TripalImporterPermissionsController.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<?php
namespace Drupal\tripal\Controller;
use Drupal\Core\Controller\ControllerBase;

/**
* Controller routines for the Tripal Module
*/
class TripalImporterPermissionsController extends ControllerBase{


public function permissions() {
$permissions = [];

$importer_manager = \Drupal::service('tripal.importer');
$importer_defs = $importer_manager->getDefinitions();

foreach ($importer_defs as $plugin_id => $def) {
<?php
namespace Drupal\tripal\Controller;
use Drupal\Core\Controller\ControllerBase;

/**
* Controller routines for the Tripal Module
*/
class TripalImporterPermissionsController extends ControllerBase{


public function permissions() {
$permissions = [];

$importer_manager = \Drupal::service('tripal.importer');
$importer_defs = $importer_manager->getDefinitions();

foreach ($importer_defs as $plugin_id => $def) {
$plugin_label = $def['label']->getUntranslatedString();
$permissions['use ' . $plugin_id . ' importer'] = [
'title' => t('Tripal Importer: Use the %label', ['%label' => $plugin_label]),
'description' => t('Allow the user to import data using the %label. Note: you may also need to give the "Upload Files" permission for importers to work.', ['%label' => $plugin_label]),
'restrict access' => TRUE,
];
}

return $permissions;
}

];
}

return $permissions;
}

}

0 comments on commit 9a72fde

Please sign in to comment.