Processors calling nonexistent DataDefinitionInterface functions

Created on 9 October 2020, over 4 years ago
Updated 11 March 2025, 27 days ago

Some of the processors reference like TranslateEntityProcessor do this:

/** @var \Drupal\Core\TypedData\DataDefinitionInterface $data_definition */
$data_definition = $facet->getDataDefinition();

Then proceed to call functions on the DataDefinitionInterface that don't exist in D8.8 and up (haven't checked earlier than that).

like this:
$data_definition->getPropertyDefinitions()
$data_definition->getPropertyDefinition($property)
$data_definition->getTargetDefinition()

So e.g. turning on "Transform entity ID to label" for a facet will cause a php error thrown.

πŸ› Bug report
Status

Closed: works as designed

Version

1.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ransomweaver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024