Project

General

Profile

Actions

Feature #89862

closed

Provide the current's record uid in SlugHelper and the postModifiers hook

Added by S P almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2019-12-05
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

When using the SlugHelper postModifiers hook it would be useful to also have the current record uid in the parameters.

For example when building slugs for Extbase records you probably need to select the full row or irows of related records to retrieve relevant information from the entity. This is not possible when there's no uid provided.

The generate() method does not get the record uid passed and thus can not pass it to the hooks. But it seems the id is always available whenever the SlugHelper::generate() method is called by the core.

Actions

Also available in: Atom PDF