Commit a672e71e authored by TravisCarden's avatar TravisCarden

Issue #2773975 by TravisCarden: Error while installing checklist module

parent 31baea60
......@@ -122,6 +122,13 @@ function checklistapi_help($route_name, RouteMatchInterface $route_match) {
}
}
/**
* Implements hook_module_preinstall().
*/
function checklistapi_module_preinstall($module) {
drupal_static_reset('checklistapi_get_checklist_info');
}
/**
* Recursively sorts array elements by #weight.
*
......
# @todo This route is automatically declared by Checklist API and should not
# need to be manually declared, but a core bug currently necessitates it.
# See https://www.drupal.org/node/2773975. Remove once resolved.
checklistapi.checklists.example_checklist:
path: '/admin/config/development/checklistapi-example'
defaults:
_title: 'Checklist API example'
_form: '\Drupal\checklistapi\Form\ChecklistapiChecklistForm'
checklist_id: example_checklist
op: any
requirements:
_checklistapi_access: 'TRUE'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment