You are here

public function WebformRevisionsRequest::getWebformEntities in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::getWebformEntities()
  2. 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_revisions

Code

public function getWebformEntities() {
  $webform = $this
    ->getCurrentWebform();
  $source_entity = $this
    ->getCurrentSourceEntity('webform');
  return [
    $webform,
    $source_entity,
  ];
}