code: public function setServiceLocator(ServiceLocatorInterface $serviceLocator)
      {
          $this->serviceLocator = $serviceLocator;
  
          $config = $serviceLocator->getServiceLocator()->get('config');
  
          if (isset($config['rznviewcomponent'])) {
              $this->config = $config['rznviewcomponent'];
          }
  
          return $this;
      }
docs: Set the service locator.
  
  @param ServiceLocatorInterface $serviceLocator
  @return CustomHelper