code: public function getLegacyPreference($name)
      {
          $legacyKernel = $this->legacyKernel;
  
          return $legacyKernel()->runCallback(
              function () use ($name) {
                  return eZPreferences::value($name);
              }
          );
      }
docs: Returns eZ Publish Legacy ezpreference value.
  
  @param string $name
  
  @return mixed