Problem/Motivation

The module isn't compatible with JSONAPI or Entity Share as it lacks two crucial fields (UUID, Default Langcode).

Steps to reproduce

  1. You cannot find the Entity type (Custom token) when you want to create a channel for the entity share.
  2. An error occurs when you attempt to visit this link: "/jsonapi/token_custom/custom" due to missing fields.

Proposed resolution

Add the missing fields and include a hook update to update the uuid for all values.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Mutasim Al-Shoura created an issue. See original summary.

anybody’s picture

Status: Active » Needs work

@Mutasim Al-Shoura please turn this into a MR. We're not using patches anymore.

longwave made their first commit to this issue’s fork.

longwave’s picture

Title: Prepare the module to work with EntityShare. » Prepare the module to work with EntityShare and JSON:API
Version: 8.x-1.0-alpha1 » 8.x-1.x-dev
Status: Needs work » Needs review

Converted the patch to an MR, also added a test from #3567563: Support JSON:API where I started work before realising it had already been done here.