Skip to content

Changes

William Panting edited this page Jun 10, 2019 · 15 revisions

GUI Changes

  • The legacy sparql collection view is no more.
  • Configuring Solr fields is only allowed on those fields that have been saved to the DB.
  • The 'reset' functionality has been removed from admin screens. If you need to reset please reinstall the module.
  • Search breadcrumbs have been removed.

API Changes

  • Many functions have been moved to classes due to Drupal 8 design patterns.
  • Many classes have moved due to Drupal 8 design patterns.
  • islandora_get_object_token has moved to Drupal\islandora\Authentication\Provider\TokenAuth::getObjectToken
    • the token parameter is now 'islandora_token'
  • islandora_view_object has moved to Drupal\islandora\Controller\DefaultController::viewObject with a Request object as a second parameter.
    • the Request object can be gotten with Drupal::request()

Hook changes

  • From the former the 'configuration' portion of the 'hook_islandora_metadata_display_info' has been changed to ask for a route name as opposed to path but will still work with existing hooks if ported naively.
  • Ingest steps form_id now form_class and takes the form class name
  • the undo_submit callback used in forms will now will call undoSubmit on form classes
  • derivative logging no longer uses 'watchdog' but 'log'
  • the hook islandora_solr_query_blocks has been removed
  • viewer configuration now takes a route name

Function changes

  • islandora_user_access() has became islandora_user_access_check due to a hook collision
  • islandora_system_settings_form_default_value has been removed

Removed functions

  • islandora_system_settings_form_default_value
  • dom_document_pretty_print_include_files
  • islandora_prepare_new_object

Removed constants

  • ISLANDORA_BASIC_COLLECTION_LEGACY_BACKEND

Deprecated Functions

  • islandora_as_renderable_array

Removed Classes

  • xml_form_elements: Element

Themeing Changes

  • islandora_datastream_*_link theme implementations are no more; they've been replaced with methods of the \Drupal\islandora\Utility\Links class.
  • The islandora_default_edit theme implementation is no more; replaced with logic in the \Drupal\islandora\Controller\ManageDatastreamController class.
  • The islandora_object_overview theme implementation is no more; replaced with logic in the \Drupal\islandora\Controller\DefaultController::islandora_manage_overview_object() method.
  • Theme hook suggestions for the islandora_object_print theme no longer exist.
  • The legacy sparql collection view is not more.
  • islandora_solr_advanced_search_form theme has been removed
  • islandora_solr_admin_primary_display theme has been removed
  • islandora_solr_admin_fields theme has been removed
  • islandora_basic_collection_wrapper template is no more
  • In some places where function calls have been made in templates they have been replaced by variables.
  • When porting theme work one should make sure reference the base D8 templates.

Misc

  • We introduced a setter for viewer information.
  • The default default users/roles for the XACML editor have been removed as they were inaccurate and posed a security risk.

Other

  • Tuque can no longer be loaded from within the module directory. Only as a library.
  • Rules integration has been taken as far as it can be but some functionality from D7 will not be present as the rules module is incomplete in D8.