You are here

protected function MediaBulkUploadForm::addAllowedExtensions in Media Bulk Upload 8

Add allowed extensions.

Parameters

array $extensions: Allowed Extensions.

Return value

$this MediaBulkUploadForm.

1 call to MediaBulkUploadForm::addAllowedExtensions()
MediaBulkUploadForm::buildForm in src/Form/MediaBulkUploadForm.php
Form constructor.

File

src/Form/MediaBulkUploadForm.php, line 257

Class

MediaBulkUploadForm
Class BulkMediaUploadForm.

Namespace

Drupal\media_bulk_upload\Form

Code

protected function addAllowedExtensions(array $extensions) {
  $this->allowed_extensions = array_unique(array_merge($this->allowed_extensions, $extensions));
  return $this;
}