code: protected function saveSlotDefinition($dir, array $slot)
      {
          $slotsFilename = $this->getSlotDefinitionFile($dir);
  
          FilesystemTools::writeFile($slotsFilename, json_encode($slot), $this->filesystem);
      }
docs: Saves the slot definition
  
  @param string $dir
  @param array $slot