public function getItem($primaryKey, $options = null)
{
if (is_array($primaryKey)) {
$path = $this->getPathFromPK($primaryKey);
} else {
$path = $primaryKey ?: '/';
}
if (!$path) {
return null;
}
try {
$item = $this->webFilesystem->getFile($path);
} catch (FileNotFoundException $e) {
return null;
}
if ($item) {
return $item->toArray();
}
}