You are here

public static function WebformAttachmentInterface::getFileContent 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::getFileContent()

Get a webform attachment's file content.

Parameters

array $element: The webform attachment element.

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

Return value

mixed|string The attachment's file content.

4 methods override WebformAttachmentInterface::getFileContent()
WebformAttachmentToken::getFileContent in modules/webform_attachment/src/Element/WebformAttachmentToken.php
Get a webform attachment's file content.
WebformAttachmentTwig::getFileContent in modules/webform_attachment/src/Element/WebformAttachmentTwig.php
Get a webform attachment's file content.
WebformAttachmentUrl::getFileContent in modules/webform_attachment/src/Element/WebformAttachmentUrl.php
Get a webform attachment's file content.
WebformEntityPrintAttachment::getFileContent in modules/webform_entity_print_attachment/src/Element/WebformEntityPrintAttachment.php
Get a webform attachment's file content.

File

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

Class

WebformAttachmentInterface
Provides an interface for webform attachment elements.

Namespace

Drupal\webform_attachment\Element

Code

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