Problem/Motivation

When requesting the width and height from the RokkaMetadata entity, we always get NULL back.

Steps to reproduce

$metadata->setHeight(600);
$metadata->getHeight(); // Returns NULL.

Proposed resolution

It looks like the bug is in retrieving the values from the Field API using $width = $this->get('width')->getValue() which returns the typed data properties, not the actual value as a scalar.

Issue fork rokka-3558429

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pfrenssen created an issue. See original summary.

  • pfrenssen committed 8393c0c6 on 3.x
    fix: #3558429 RokkaMetadata doesn't return width and height correctly...
pfrenssen’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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