You are here

public function Asset::buildContent in Asset 7

Builds a structured array representing the entity's content.

Overrides Entity::buildContent

File

includes/asset.controllers.inc, line 61
Provides a controller classes for Asset and related entities

Class

Asset
Use a separate class for assets so we can specify some defaults.

Code

public function buildContent($view_mode = 'full', $langcode = NULL) {
  $build = parent::buildContent($view_mode, $langcode);
  $build['#theme_wrappers'][] = 'asset_wrapper';
  return $build;
}