Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
language.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Nov 2014 at 14:51 UTC
Updated:
18 Dec 2014 at 12:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
daffie commentedI would like to get this fixed. So I will do a good review for posted patches.
Comment #2
fernando_calsa commentedI've seen the file core/modules/language/Entity/ConfigurableLanguage.php and the only property what is public is $label what is the human-readable lable for the language, but the rest of the properties are protected and they have getters and setters, perhaps I am confused
Comment #3
daffie commentedIf only the $label variable is public, then that is the only one that needs to change. There is already a build in function label(). The only problem that I can see is that somewhere a ConfigurableLanguage class instance accesses the label variable directly and that will result in errors. Those need to be fixed. And that is all there is to do for this issue. You can do patch with the only change being that the label variable is set to protected and run the tests and see what goes wrong.
Comment #4
daffie commentedUpdated the issue summary with link to parent issue for more info.
Comment #5
rpayanmLet me see...
Comment #6
daffie commentedAll the class variable label is protected.
The getter function is already available, so no need for a new one.
The test-server give it green.
It all looks good to me, so for me it is RTBC.
Comment #7
rpayanm@daffie would be good adding getLabel() and setLabel() to this class ?
Comment #8
daffie commented@rpayanm: The function getLabel() is not used. We have a build in function called label() that does the same. It is inherited from the Entity class. The function setLabel() is not added because it will most probably almost never used.
Comment #9
rpayanm@daffie ok, thank you!
Comment #10
alexpottCommitted 7f902cb and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation for to the issue summary.