Browse Source

Issue #937: Fix PHPCS issues.

pull/938/head
Alexander O'Neill 1 year ago
parent
commit
8286dfe423
  1. 13
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

13
modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

@ -4,7 +4,7 @@ namespace Drupal\islandora_iiif\Plugin\views\style;
use Drupal\views\Plugin\views\style\StylePluginBase; use Drupal\views\Plugin\views\style\StylePluginBase;
use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use \Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Messenger\MessengerInterface; use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
@ -93,7 +93,9 @@ class IIIFManifest extends StylePluginBase {
protected $messenger; protected $messenger;
/** /**
* @var \Drupal\Core\Extention\ModuleHandlerInterface; * Module Handler for running hooks.
*
* @var \Drupal\Core\Extention\ModuleHandlerInterface
*/ */
protected $moduleHandler; protected $moduleHandler;
@ -309,8 +311,11 @@ class IIIFManifest extends StylePluginBase {
]; ];
} }
// Give other modules a chance to alter the canvas // Give other modules a chance to alter the canvas.
$alter_options = ['options' => $this->options, 'views_plugin' => $this]; $alter_options = [
'options' => $this->options,
'views_plugin' => $this
];
$this->moduleHandler->alter('islandora_iiif_manifest_canvas', $tmp_canvas, $row, $alter_options); $this->moduleHandler->alter('islandora_iiif_manifest_canvas', $tmp_canvas, $row, $alter_options);
$canvases[] = $tmp_canvas; $canvases[] = $tmp_canvas;

Loading…
Cancel
Save