You are here

public static function WebformAttachmentInterface::getFileUrl in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_attachment/src/Element/WebformAttachmentInterface.php \Drupal\webform_attachment\Element\WebformAttachmentInterface::getFileUrl()

Get a webform attachment's download URL.

Parameters

array $element: The webform attachment element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

Return value

\Drupal\Core\Url|null A webform attachment's download URL. Return NULL if the submission is not saved to the database.

1 method overrides WebformAttachmentInterface::getFileUrl()
WebformAttachmentBase::getFileUrl in modules/webform_attachment/src/Element/WebformAttachmentBase.php
Get a webform attachment's download URL.

File

modules/webform_attachment/src/Element/WebformAttachmentInterface.php, line 63

Class

WebformAttachmentInterface
Provides an interface for webform attachment elements.

Namespace

Drupal\webform_attachment\Element

Code

public static function getFileUrl(array $element, WebformSubmissionInterface $webform_submission);