You are here

public function VideoUploadWidget::getUploadLocation in Video 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/VideoUploadWidget.php \Drupal\video\Plugin\Field\FieldWidget\VideoUploadWidget::getUploadLocation()

Determines the URI for a video field.

Parameters

array $data: An array of token objects to pass to token_replace().

Return value

string An unsanitized file directory URI with tokens replaced. The result of the token replacement is then converted to plain text and returned.

See also

token_replace()

1 call to VideoUploadWidget::getUploadLocation()
VideoUploadWidget::formElement in src/Plugin/Field/FieldWidget/VideoUploadWidget.php
Returns the form for a single field widget.

File

src/Plugin/Field/FieldWidget/VideoUploadWidget.php, line 217

Class

VideoUploadWidget
Plugin implementation of the 'video_upload' widget.

Namespace

Drupal\video\Plugin\Field\FieldWidget

Code

public function getUploadLocation($data = []) {
  return static::doGetUploadLocation($this
    ->getSettings(), $data);
}