You are here

public function FacebookPublicationEntity::buildContent in Facebook Autopost 7

Build entity content based on $view_mode and $lagcode.

Overrides Entity::buildContent

File

fb_autopost_entity/fb_autopost_entity.module, line 523
Module implementation file

Class

FacebookPublicationEntity
The class used for Facebook publication entities.

Code

public function buildContent($view_mode = 'full', $langcode = NULL) {
  $content = array();

  // Assume newly create objects are still empty.
  if (!empty($this->is_new)) {
    $content['empty']['#markup'] = '<em class="facebook-pulbication-no-data">' . t('There is no Facebook publication data yet.') . '</em>';
  }
  return entity_get_controller($this->entityType)
    ->buildContent($this, $view_mode, $langcode, $content);
}