Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
action.module
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
30 Nov 2014 at 14:49 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
daffie commentedThe class variables $id and $label need to become protected.
You can use the functions id() as a getter function for the $id variable and label() as a getter function for the variable $label.
Comment #3
daffie commentedThe action entity is defined in the system module.
Comment #4
areke commentedComment #5
areke commentedLet's try this.
Comment #6
daffie commentedThese functions are inherited from the Entity class. So they can be removed.
These functions are not used. You can remove them and use set('id', $value) and set('label', $value).
Comment #7
daffie commentedComment #8
areke commentedComment #9
areke commentedComment #10
daffie commented@areke: Something went wrong with creating your last patch. :(
Comment #11
areke commentedComment #13
daffie commentedAll the class variables are protected.
There are already getter functions available, so no need for new ones.
The test-server give it green.
It all looks good to me, so for me it is RTBC.
Comment #14
craigsilk commentedOut of curiosity, was / is there any code that sets these variables directly rather than through the inherited get() and set() methods?
Comment #15
daffie commented@craigsilk: The getter function for the variable $id is id() and the getter for the variable $label is label(). If you want to set the variable $id or $label you must use the set() function.
Comment #16
alexpottCommitted 7ee91de and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation for to the issue summary.