Skip to content

Commit

Permalink
Fix note in Release 2.0.0 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffard committed Sep 29, 2024
1 parent 6d97f2f commit da9eedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/releases/2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ and removed the following methods:

A new `SiteDisplayDriver` base class was introduced to simplify the process of adding a UI settings.

!!! note
!!! note
With the new `SiteDisplayDriver` base class for custom settings, you no longer need explicit checks like `context.GroupId.Equals(GroupId, StringComparison.OrdinalIgnoreCase)` as the base class handles this check for you.

A new extension has been introduced to simplify the registration of site setting drivers. Instead of using `service.AddScoped<IDisplayDriver<ISite>, CustomSettingsDisplayDriver>()`, you can now register it with the more streamlined `service.AddSiteDisplayDriver<CustomSettingsDisplayDriver>()`.
Expand Down

0 comments on commit da9eedf

Please sign in to comment.