Adds a null coalescing operator when attempting to read the search_endpoint option and a null-check in the event that it hasn't been set, and handle the following warning:
Warning: Undefined array key "search_endpoint" in Drupal\islandora_iiif\Plugin\views\style\IIIFManifest->addSearchEndpoint() (line 497 of path/to/files/islandora/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php).
What's new?
Adds a null coalescing operator when attempting to read the search_endpoint variable. Then performs a null-check before executing operations with that value that may not exist.
Does this change add any new dependencies? No.
Does this change require any other modifications to be made to the repository
(i.e. Regeneration activity, etc.)? No.
Could this change impact execution of existing code? Yes.
How should this be tested?
Load a page where the addSearchEndpoint function is called, but the search_endpoint option is not set.
GitHub Issue: N/A
What does this Pull Request do?
Adds a null coalescing operator when attempting to read the
search_endpoint
option and a null-check in the event that it hasn't been set, and handle the following warning:What's new?
Adds a null coalescing operator when attempting to read the
search_endpoint
variable. Then performs a null-check before executing operations with that value that may not exist.How should this be tested?
Load a page where the
addSearchEndpoint
function is called, but thesearch_endpoint
option is not set.Interested parties
@Islandora/committers