WebformEntityViewBuilder.php in Webform 8.5
Same filename and directory in other branches
Namespace
Drupal\webformFile
src/WebformEntityViewBuilder.phpView source
<?php
namespace Drupal\webform;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityViewBuilder;
/**
* Render controller for webform.
*/
class WebformEntityViewBuilder extends EntityViewBuilder {
/**
* {@inheritdoc}
*/
public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
/* @var $entity \Drupal\webform\WebformInterface */
return $entity
->getSubmissionForm();
}
}
Classes
Name | Description |
---|---|
WebformEntityViewBuilder | Render controller for webform. |