Browse Source

Coding standards

pull/822/head
dannylamb 5 years ago
parent
commit
90418ce97a
  1. 4
      islandora.module
  2. 3
      src/Form/IslandoraSettingsForm.php

4
islandora.module

@ -21,7 +21,6 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Site\Settings;
use Drupal\Core\Url;
use Drupal\islandora\Form\IslandoraSettingsForm;
use Drupal\islandora\GeminiLookup;
use Drupal\node\NodeInterface;
use Drupal\media\MediaInterface;
use Drupal\file\FileInterface;
@ -480,7 +479,8 @@ function islandora_entity_view(array &$build, EntityInterface $entity, EntityVie
$scheme = \Drupal::service('file_system')->uriScheme($uri);
$flysystem_config = Settings::get('flysystem');
// Use the file's path if it's in fedora. Otherwise do the UUID -> pair tree thang.
// Use the file's path if it's in fedora.
// Otherwise do the UUID -> pair tree thang.
if (isset($flysystem_config[$scheme]) && $flysystem_config[$scheme]['driver'] == 'fedora') {
$parts = parse_url($uri);
$path = $parts['host'] . $parts['path'];

3
src/Form/IslandoraSettingsForm.php

@ -7,9 +7,6 @@ use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Form\ConfigFormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Site\Settings;
use Drupal\Core\Url;
use GuzzleHttp\Exception\ConnectException;
use Islandora\Crayfish\Commons\Client\GeminiClient;
use Stomp\Client;
use Stomp\Exception\StompException;
use Stomp\StatefulStomp;

Loading…
Cancel
Save