Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 7 entity_metadata_wrapper bundle

// Unified way of getting $node->title, $user->name, ...
$wrapper->label();

// Unified way of getting $node->nid, $user->uid, ...
$wrapper->getIdentifier();

// Unified way of getting $node->type, ...
$wrapper->getBundle();
Source by www.drupal.org #
 
PREVIOUS NEXT
Tagged: #drupal #bundle
ADD COMMENT
Topic
Name
7+2 =