Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment 0
Problem/Motivation
Attribute::value() uses a non existing property called value, so a notice happens. This method is not used anywhere in core.
/**
* Returns the whole array.
*/
public function value() {
return $this->value;
}
Proposed resolution
- Rename the method.
- Write proper tests.
Remaining tasks
User interface changes
API changes
Related Issues
Comment | File | Size | Author |
---|---|---|---|
#3 | attribute-2083941-3.patch | 5.26 KB | dawehner |
#3 | interdiff.txt | 776 bytes | dawehner |
#1 | template-attribute-2083941-1.patch | 5.26 KB | dawehner |
Comments
Comment #1
dawehnerThere we go.
Comment #3
dawehnerThat was the only I didn't tried whether it passes.
Comment #4
Fabianx CreditAttribution: Fabianx commentedLooks good to me.
Comment #5
webchickCommitted and pushed to 8.x. Thanks!