You are here

public function ImceFolder::addFile in IMCE 8

Same name and namespace in other branches
  1. 8.2 src/ImceFolder.php \Drupal\imce\ImceFolder::addFile()

Adds a file by name.

1 call to ImceFolder::addFile()
ImceFolder::getItem in src/ImceFolder.php
Returns an item by name.

File

src/ImceFolder.php, line 202

Class

ImceFolder
Imce Folder.

Namespace

Drupal\imce

Code

public function addFile($name) {
  return $this
    ->createItem('file', $name);
}