Actions
Feature #79877
closedmake languageService usable in PageLayoutViewDrawItemHookInterface
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!
Updated by Georg Ringer almost 8 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