retrofit
retrofit copied to clipboard
Retrofit provides compatibility layers to run legacy Drupal code.
Contrib module APIs change as much as Drupal core APIs. It would be nice to have a way to provide Retrofit extensions for contrib modules so they can be supported...
Invoke `hook_library` and create library definitions Seems like it's best to decorate and implement \Drupal\Core\Asset\LibraryDiscoveryParser::buildByExtension Example ```php function overlay_library() { $module_path = drupal_get_path('module', 'overlay'); // Overlay parent. $libraries['parent'] = array(...
The form ID is no longer `user_profile_form`. Modules could set `data` on the account object and it was automatically saved. ```php $form['overlay_control']['overlay'] = array( '#type' => 'checkbox', '#title' => t('Use...
This was copied from [8be3d3e2](https://git.drupalcode.org/project/drupal/-/blob/a598aa4654e21cb2ce753a81a08152f4c7346182/core/lib/Drupal/Core/Entity/EntityFieldQuery.php). The namespace was changed to Retrofit\Drupal\Entity and EntityFieldQueryException was changed to QueryException.
- [ ] Provide methods to retrieve D7 $field and $instance definitions. - [ ] Finish defaultSettings method. - [ ] Finish settingsForm method. - [ ] Finish settingsSummary method....