Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
27 Feb 2014 at 17:05 UTC
Updated:
1 Aug 2025 at 18:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damiankloip commentedPatch to follow.
Comment #2
damiankloip commentedLet's see what fails.
Comment #4
damiankloip commentedWhoops, a syntax error is always good.
Comment #6
damiankloip commentedLet's try this.
Comment #7
dawehnerWe can haz getObjectFromTrait?
Comment #8
damiankloip commentedYes, yes you can haz that.
Comment #9
dawehnerThank yoou!
Comment #10
tstoecklerThis (and all others) violate our coding standards. There should be a blank line before the use.
More importantly, however, I'm not sure this should go in as long as we haven't figured out #2134513: [policy, no patch] Trait strategy. Especially because #2079797: Provide a trait for $this->t() and $this->formatPlural() would duplicate part of the ControllerBase trait.
I.e. I think it would more sense to decompose the *parts* of ControllerBase into separate traits so people can pick and choose which ones they actually need.
Comment #11
ParisLiakos commented+1 on #10
see point 2 in #2134513: [policy, no patch] Trait strategy
ControllerBase should be a collection of many small traits, each one targeted to a specific thing
Comment #12
ParisLiakos commentedComment #13
damiankloip commentedOk whatever. I'm not going to argue. You run a risk of making things confusing for people if they have to include too many traits.
Closing this then?
Comment #14
ParisLiakos commentedi dont think it is confusing. It is like use statements. you need something? use it
or extend ControllerBase and dont care at all.
At least postponed though rather than closed
Comment #15
yesct commentedComment #16
mgiffordComment #17
yesct commentedComment #31
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #32
smustgrave commentedSince there has been no follow up, and this kinda feels more like a feature request going to close this one out. If still desired task please re-open