copyItem() public method

Copy item
public copyItem ( string $src, string $dest ) : boolean
$src string
$dest string
return boolean
Beispiel #1
0
 /**
  * Copy item
  *
  * @param string $src
  * @param string $dest
  * @return void
  * @throws InvalidArgumentException
  */
 public function copyItem($src, $dest)
 {
     try {
         $this->storage->copyItem($src, $dest);
     } catch (\InvalidArgumentException $e) {
         throw new \InvalidArgumentException(sprintf('The template %s could not be created.', "<strong>{$dest}</strong>"), $e->getCode(), $e);
     }
 }