code: protected function getSlotDefinition($dir)
      {
          $slotsFilename = $this->getSlotDefinitionFile($dir);
  
          return json_decode(FilesystemTools::readFile($slotsFilename), true);
      }
docs: Fetches the slot definition
  
  @param string $dir
  
  @return array