How do I get a reference to the node/entity used to instantiate entity_metadata_wrapper / EntityDrupalWrapper. I could not find a getNode
/getEntity
or similar method in the
EntityDrupalWrapper API Reference.
$wrapper = entity_metadata_wrapper('node',
entity_create('node', array(
'type' => 'video',
'bundle' => 'video'
)
)
);
EntityMetadataWrapper provides two methods for getting node data,
raw
andvalue
. Description ofraw
from EntityMetadataWrapper API Reference.Credit to @Clive for answer