You are here

public function ImceFolder::createItem in IMCE 8

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

Creates and returns a child file/folder object by name.

2 calls to ImceFolder::createItem()
ImceFolder::addFile in src/ImceFolder.php
Adds a file by name.
ImceFolder::addSubfolder in src/ImceFolder.php
Adds a subfolder by name.

File

src/ImceFolder.php, line 193

Class

ImceFolder
Imce Folder.

Namespace

Drupal\imce

Code

public function createItem($type, $name, $conf = NULL) {
  $item = $this
    ->fm()
    ->createItem($type, $name, $conf);
  $this
    ->appendItem($item);
  return $item;
}