Entity metadata hint generator
Component ID
2398011
Component name
Entity metadata hint generator
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
470
Component created
Component changed
Component body
You should only use this module if:
- You are Drupal developer
- You are using entity api
- You are using an IDE.
- You understand
entity_metadata_wrapper('node', $node = node_load(1))
->field_no_autocomplete
->unhappy();- Don't need extra code on production site
Usage
drush entity_hint > private/files/entity_hint.php
After running Drush command, we have generated code look like this:
cat private/files/entity_hint.php
/**
* Nodes represent the main site content items.
*
* @fieldable yes
* @configuration no
* @label Node
*/
class NodeArticleMetadataWrapper extends EntityDrupalWrapper
{
/**
* Node ID
*
* The unique ID of the node.
*
* @property
* @var EntityValueWrapper integer
*/
public $nid = null;
// …
}
Include the file in your IDE.
