protected function WebformSubmissionSubmittedToTrait::getSourceEntity in Webform Views Integration 8.5
Retrieve the "submitted to" entity from a result row.
Parameters
\Drupal\views\ResultRow $row:
Return value
\Drupal\Core\Entity\EntityInterface|null Source entity of this submission is submitted to or NULL should it not have one
2 calls to WebformSubmissionSubmittedToTrait::getSourceEntity()
- WebformSubmissionSubmittedToLabel::render in src/
Plugin/ views/ field/ WebformSubmissionSubmittedToLabel.php - Renders the field.
- WebformSubmissionSubmittedToRenderedEntity::render in src/
Plugin/ views/ field/ WebformSubmissionSubmittedToRenderedEntity.php - Renders the field.
File
- src/
Plugin/ views/ field/ WebformSubmissionSubmittedToTrait.php, line 74
Class
- WebformSubmissionSubmittedToTrait
- Reasonable starting point for fields regarding source entity.
Namespace
Drupal\webform_views\Plugin\views\fieldCode
protected function getSourceEntity(ResultRow $row) {
/** @var WebformSubmissionInterface $entity */
$entity = $this
->getEntity($row);
return $entity
->getSourceEntity();
}