You are here

public function EntityMetadataWrapper::info in Entity API 7

Gets info about the wrapped data.

Return value

array Keys set are all keys as specified for a property in hook_entity_info() as well as possible the following keys:

  • name: If this wraps a property, the name of the property.
  • parent: The parent wrapper, if any.
  • langcode: The language code, if this data is language specific.

File

includes/entity.wrapper.inc, line 49
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityMetadataWrapper
A common base class for all wrappers.

Code

public function info() {
  return $this->info;
}