Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Aug 2015 at 14:22 UTC
Updated:
17 Oct 2015 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
swentel commentedHmmm, you're right, so we (probably) don't have any tests for this, but it's kind of useless to be there as you can get the language from the entity, so we can just remove it.
Comment #3
swentel commentedMissed another api documentation
Comment #4
lucastockmann commentedSo, I just made a short regex (
moduleHandler\(\)->alter\(([^,]+,\s?){2}[^,\) \{]+\)) search over the core and saw that many of our alter methods have more than 2 arguments.How should we deal with this? - Is there any need to fix this as it's only a warning? Or is there maybe already a meta Issue for this?
In case my questions are obsolete and we already have a solution or an issue for this, the issue can be set back to needs review.
Comment #5
berdir$langcode was removed, so this resolved itself.
@lucastockmann: Three arguments is fine. It's one primary argument to be altered + two contexts. You need to look for three or more arguments.