Some path alias crash the creation of the views_url_alias table

Created on 3 December 2024, about 2 months ago

Problem/Motivation

Path aliases pointing to something else than a ContentEntityInterface generate

```
TypeError: views_url_alias_get_path_entity_type(): Return value must be of type ?Drupal\Core\Entity\ContentEntityInterface, [SOMETHING ELSE] returned
```
Example: Drupal\webform\Entity\Webform

Steps to reproduce

Add a Webform with an alias and install the module

Proposed resolution

Change the return type to EntityInterface

API changes

```
function views_url_alias_get_path_entity_type will return null or EntityInterface instead of null or ContentEntityInterface
```

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada bohemier Québec city, Qc

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

Comments & Activities

Production build 0.71.5 2024