protected function ProfileViewBuilder::getBuildDefaults in Profile 8
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
- src/
ProfileViewBuilder.php, line 16
Class
- ProfileViewBuilder
- Render controller for profile entities.
Namespace
Drupal\profileCode
protected function getBuildDefaults(EntityInterface $entity, $view_mode) {
$defaults = parent::getBuildDefaults($entity, $view_mode);
$defaults['#theme'] = 'profile';
return $defaults;
}