You are here

public function NodeResourceFeedModelItem::getDescription in Services 7

Same name and namespace in other branches
  1. 6.3 servers/rest_server/includes/node_resource.models.inc \NodeResourceFeedModelItem::getDescription()
  2. 6.2 services/node_service/node_resource.models.inc \NodeResourceFeedModelItem::getDescription()

Calls node_build_content to create a teaser

File

services/node_service/node_resource.models.inc, line 57

Class

NodeResourceFeedModelItem

Code

public function getDescription() {
  if (!isset($this->node->content)) {
    $this->node = node_build_content($this->node, TRUE, FALSE);
  }
  return $this->node->teaser;
}