You are here

function InvoiceController::buildContent in Commerce Invoice 7.2

File

src/Entity/InvoiceController.php, line 81
The entity controller for invoices.

Class

InvoiceController

Namespace

Drupal\commerce_invoice\Entity

Code

function buildContent($entity, $view_mode = 'full', $langcode = NULL, $content = []) {
  if ($view_mode === 'full') {
    $this
      ->addInvoiceInfo($entity, $content);
  }
  return parent::buildContent($entity, $view_mode, $langcode, $content);
}