/** * Gets the 'paramconverter_manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Drupal\Core\ParamConverter\ParamConverterManager A Drupal\Core\ParamConverter\ParamConverterManager instance. */ protected function getParamconverterManagerService() { $this->services['paramconverter_manager'] = $instance = new \Drupal\Core\ParamConverter\ParamConverterManager(); $instance->addConverter($this->get('drupal.proxy_original_service.paramconverter.views_ui'), 'drupal.proxy_original_service.paramconverter.views_ui'); $instance->addConverter($this->get('drupal.proxy_original_service.paramconverter.configentity_admin'), 'drupal.proxy_original_service.paramconverter.configentity_admin'); $instance->addConverter($this->get('drupal.proxy_original_service.paramconverter.menu_link'), 'drupal.proxy_original_service.paramconverter.menu_link'); $instance->addConverter($this->get('drupal.proxy_original_service.node_preview'), 'drupal.proxy_original_service.node_preview'); $instance->addConverter($this->get('paramconverter.entity'), 'paramconverter.entity'); $instance->_serviceId = 'paramconverter_manager'; return $instance; }
/** * Gets the 'paramconverter_manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Drupal\Core\ParamConverter\ParamConverterManager A Drupal\Core\ParamConverter\ParamConverterManager instance. */ protected function getParamconverterManagerService() { $this->services['paramconverter_manager'] = $instance = new \Drupal\Core\ParamConverter\ParamConverterManager(); $instance->addConverter($this->get('paramconverter.views_ui'), 'paramconverter.views_ui'); $instance->addConverter($this->get('paramconverter.configentity_admin'), 'paramconverter.configentity_admin'); $instance->addConverter($this->get('paramconverter.entity'), 'paramconverter.entity'); return $instance; }