After creating a new Knowledge Graph Type and clicking the "Add mapping" link i get the following php warning. I've not created any other fields - a simple content type page is available for testing purpose.

The error is caused by not having any @type fields in the entity type.

SteffenR

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SteffenR’s picture

Issue summary: View changes
SteffenR’s picture

Issue summary: View changes
SteffenR’s picture

Assigned: Unassigned » SteffenR
SteffenR’s picture

The warning appears while not having any mapping fields defined in the knowledge graph type.
Could be solved easily by adding an empty array for $knowledge_graph_type_map_fields.

Attached a patch solving the issue.

SteffenR’s picture

Assigned: SteffenR » Cyberschorsch
Status: Active » Needs review
Cyberschorsch’s picture

Status: Needs review » Closed (fixed)

Thank you!