Project

General

Profile

Actions

Feature #79877

closed

make languageService usable in PageLayoutViewDrawItemHookInterface

Added by Dominik Hahn about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-02-17
Due date:
% Done:

0%

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

Description

Hey guys,

I am using the $drawItemHooks / PageLayoutViewDrawItemHookInterface to manipulate the rendering of content elements in the page module.
The class "PageLayoutView" utilizes the getLanguageService()-method for translation handling but I can't use it in the hook because the AbstractRecordList class declares this method as "protected".

Unless there a are better ways to solve it I would love to see the languageService usable in PageLayoutViewDrawItemHookInterface – thanks!

Actions #1

Updated by Georg Ringer about 7 years ago

  • Status changed from New to Rejected

Just use the same method in your hook or use $GLOBALS['LANG'] directly.
The method won't be changed to public as it would make it harder then to deprecate it once that should be done.

Actions

Also available in: Atom PDF