I am trying to get data from a text_long
type field using EntityMetadataWrapper
, and from what I'm seeing on the interwebs, I should be using something like this:
$wrapper->{$field}->value();
or
$wrapper->{$field}->value->value();
However, if I use the first one, I get an array with format
and value
keys, but if I try the latter, I get an Call to a member function value() on null` error.
Do I have to use $wrapper->{$field}->value();
and manually get the value
from the array? Or is there a more direct method? I've looked through the class, I don't see another method that gets the value
data.