You are here

protected function OrderViewBuilder::getBuildDefaults in Ubercart 8.4

Provides entity-specific defaults to the build process.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for which the defaults should be provided.

string $view_mode: The view mode that should be used.

Return value

array

Overrides EntityViewBuilder::getBuildDefaults

File

uc_order/src/OrderViewBuilder.php, line 48

Class

OrderViewBuilder
View builder for orders.

Namespace

Drupal\uc_order

Code

protected function getBuildDefaults(EntityInterface $entity, $view_mode) {
  $build = parent::getBuildDefaults($entity, $view_mode);

  // For now, the entity has no template itself.
  unset($build['#theme']);
  return $build;
}