class crumbs_EntityPlugin_Field_NodeReference in Crumbs, the Breadcrumbs suite 7.2
Hierarchy
- class \crumbs_EntityPlugin_Field_Abstract implements crumbs_EntityPlugin
Expanded class hierarchy of crumbs_EntityPlugin_Field_NodeReference
File
- lib/
EntityPlugin/ Field/ NodeReference.php, line 3
View source
class crumbs_EntityPlugin_Field_NodeReference extends crumbs_EntityPlugin_Field_Abstract {
/**
* {@inheritdoc}
*/
function fieldFindCandidate(array $items) {
foreach ($items as $item) {
if (1 && !empty($item['nid']) && ($target_node = node_load($item['nid'])) && ($uri = entity_uri('node', $target_node))) {
return $uri['path'];
}
}
return NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
crumbs_EntityPlugin_Field_Abstract:: |
protected | property | ||
crumbs_EntityPlugin_Field_Abstract:: |
protected | property | ||
crumbs_EntityPlugin_Field_Abstract:: |
function |
Overrides crumbs_EntityPlugin:: |
||
crumbs_EntityPlugin_Field_Abstract:: |
function |
Overrides crumbs_EntityPlugin:: |
||
crumbs_EntityPlugin_Field_Abstract:: |
protected | function | ||
crumbs_EntityPlugin_Field_Abstract:: |
function | |||
crumbs_EntityPlugin_Field_NodeReference:: |
function |
Overrides crumbs_EntityPlugin_Field_Abstract:: |