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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
Issue tags: +PHPUnit
FileSize
5.26 KB

There we go.

Status: Needs review » Needs work

The last submitted patch, template-attribute-2083941-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
FileSize
776 bytes
5.26 KB

That was the only I didn't tried whether it passes.

Fabianx’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Looks good to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.