-
Notifications
You must be signed in to change notification settings - Fork 11
Implemented a solution to the issue with the state of the text overlay checkbox in the mirador settings not affecting the presence of the text overlay #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.x
Are you sure you want to change the base?
Conversation
…ay checkbox in the mirador settings not affecting the presence of the text overlay
islandora_mirador.module
Outdated
| // if (isset($enabled_plugins[$plugin_id])) { | ||
| // $plugin_instance = $mirador_plugin_manager->createInstance($plugin_id); | ||
| // /** | ||
| // * @var Drupal\islandora_mirador\IslandoraMiradorPluginInterface | ||
| // */ | ||
| // $plugin_instance->windowConfigAlter($window_config); | ||
| // } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be removed if it's no longer used
| // if (isset($enabled_plugins[$plugin_id])) { | |
| // $plugin_instance = $mirador_plugin_manager->createInstance($plugin_id); | |
| // /** | |
| // * @var Drupal\islandora_mirador\IslandoraMiradorPluginInterface | |
| // */ | |
| // $plugin_instance->windowConfigAlter($window_config); | |
| // } |
| // Always call plugins - they will check their own state | ||
| $plugin_instance = $mirador_plugin_manager->createInstance($plugin_id); | ||
| /** | ||
| * @var Drupal\islandora_mirador\IslandoraMiradorPluginInterface | ||
| */ | ||
| $plugin_instance->windowConfigAlter($window_config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type hint should go when the variable is instantiated
| // Always call plugins - they will check their own state | |
| $plugin_instance = $mirador_plugin_manager->createInstance($plugin_id); | |
| /** | |
| * @var Drupal\islandora_mirador\IslandoraMiradorPluginInterface | |
| */ | |
| $plugin_instance->windowConfigAlter($window_config); | |
| /** | |
| * @var Drupal\islandora_mirador\IslandoraMiradorPluginInterface | |
| */ | |
| $plugin_instance = $mirador_plugin_manager->createInstance($plugin_id); | |
| $plugin_instance->windowConfigAlter($window_config); |
|
The code has been edited based on the suggestions given |
What does this Pull Request do?
It lets the state of the "Text Overlay" checkbox in the mirador settings, affect whether or not the text overlay is enabled.
This is the link to the issue on Github:
#59
What's new?
An in-depth description of the changes made by this PR. Technical details and
possible side effects.
How should this be tested?
A description of what steps someone could take to:
Documentation Status
Additional Notes:
None
Interested parties
@digitalutsc