public function WebformRevisionsRequest::getWebformEntities in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::getWebformEntities()
- 1.x modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::getWebformEntities()
Get the webform and source entity for the current request.
Return value
array An array containing the webform and source entity for the current request.
Overrides WebformRequest::getWebformEntities
File
- modules/
webform_revisions/ src/ WebformRevisionsRequest.php, line 206
Class
- WebformRevisionsRequest
- Handles webform requests.
Namespace
Drupal\webform_revisionsCode
public function getWebformEntities() {
$webform = $this
->getCurrentWebform();
$source_entity = $this
->getCurrentSourceEntity('webform');
return [
$webform,
$source_entity,
];
}