public ViewUIConverter::__construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory, ConfigFactoryInterface $config_factory = NULL, AdminContext $admin_context = NULL)
Constructs a new ViewUIConverter.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\user\SharedTempStoreFactory $temp_store_factory: The factory for the temp store object.
Overrides AdminPathConfigEntityConverter::__construct
File
- core/modules/views_ui/src/ParamConverter/ViewUIConverter.php, line 47
Class
- ViewUIConverter
- Provides upcasting for a view entity to be used in the Views UI.
Namespace
Drupal\views_ui\ParamConverter
Code
public function __construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory, ConfigFactoryInterface $config_factory = NULL, AdminContext $admin_context = NULL) { // The config factory and admin context are new arguments due to changing // the parent. Avoid an error on updated sites by falling back to getting // them from the container. // @todo Remove in 8.2.x in https://www.drupal.org/node/2674328. if (!$config_factory) { $config_factory = \Drupal::configFactory(); } if (!$admin_context) { $admin_context = \Drupal::service('router.admin_context'); } parent::__construct($entity_manager, $config_factory, $admin_context); $this->tempStoreFactory = $temp_store_factory; }
Please login to continue.