retrofit icon indicating copy to clipboard operation
retrofit copied to clipboard

Retrofit provides compatibility layers to run legacy Drupal code.

Results 29 retrofit issues
Sort by recently updated
recently updated
newest added

It's not clear from the project's description if code is automatically generated for the new APIs, or if it just provides a compatibility layer that people can then manually rewrite...

This would simplify using Retrofit. The logic is within `\Drupal\Core\Extension\ExtensionDiscovery::scanDirectory`: ```php foreach ($iterator as $key => $fileinfo) { // All extension names in Drupal have to be valid PHP function...

enhancement

`\Retrofit\Drupal\Plugin\Derivative\MenuLinkDeriver` mimics D7 links from the menu system. If a `type` isn't defined it is treated as `MENU_NORMAL_ITEM`. However, this causes links with required arguments to be a menu link...

This can be seen when AuthorFormatter displays author information on nodes. https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Field%21Plugin%21Field%21FieldFormatter%21EntityReferenceFormatterBase.php/function/EntityReferenceFormatterBase%3A%3AneedsEntityLoad/10

Feedback from TCDrupal presentation was to add some kind of status report that Retrofit is running on the site.

`system_page_attachments`: ```php // Attach libraries used by this theme. $active_theme = \Drupal::theme()->getActiveTheme(); foreach ($active_theme->getLibraries() as $library) { $page['#attached']['library'][] = $library; } ```