I ran into some issues trying to get the D8 version to work.

While through the GeoJsonExport class fixing the errors that were arising, it became clear that it was essentially a copy of the RestExport class with some modifications.

I found success by changing it to just derive from the RestExport class itself (instead of their common PathPluginBase ancestor) and making just a couple small modifications.

Comments

jeffschuler created an issue. See original summary.

jeffschuler’s picture

Status: Active » Needs review
StatusFileSize
new9.47 KB
jeffschuler’s picture

For Drupal 8.5.x compatibility:
Add $serializer_format_providers to GeoJsonExport class constructor (to be in-line with RestExport).

jeffschuler’s picture

Re-rolled for latest 8.x-1.x-dev, mostly to account for changes from #3083020: Cannot use object of type Drupal\Core\Cache\CacheableResponse as array. Still just deleting most of the class implementation, as it's just code copied from core's RestExport class.

jeffschuler’s picture

Fixes previous.

  • jeffschuler committed 29121e1 on 8.x-1.x
    Issue #2943351 by jeffschuler: Simplify Views display plugin by deriving...
jeffschuler’s picture

Commit: 29121e1

jeffschuler’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.