Commit c9ae778
committed
feat(next-drupal): add NextDrupal and NextDrupalBase class definitions
The DrupalClient class has been renamed to NextDrupalPages and has been
refactored to inherit from the NextDrupalBase (base class) and NextDrupal
(JsonAPI/App Router class). NextDrupalPages class contains the methods that are
only needed to support Next.js' Pages Router. NextDrupalPages is also available
as "DrupalClient" for backwards-compatibility.
The getPathFromContext() method has been replaced with the
constructPathFromSegment() method for App Router usages.
Issue #6651 parent 2a9aa28 commit c9ae778
File tree
44 files changed
+4714
-3647
lines changed- packages/next-drupal
- src
- deprecated
- types
- tests
- DrupalClient
- DrupalMenuTree
- NextDrupalBase
- NextDrupalPages
- __snapshots__
- NextDrupal
- __snapshots__
- draft
- utils
- mocks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+4714
-3647
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments