You are here

public function RefreshPageElementsHelper::__construct in Commerce Ajax Add to Cart 8

Constructs a new RefreshPageElementsHelper object.

Parameters

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

File

src/RefreshPageElementsHelper.php, line 70

Class

RefreshPageElementsHelper
Provides methods that would help in refreshing certain page elements.

Namespace

Drupal\dc_ajax_add_cart

Code

public function __construct(ThemeManagerInterface $theme_manager, EntityTypeManagerInterface $entity_type_manager, BlockManagerInterface $block_manager, RendererInterface $renderer) {
  $this->themeManager = $theme_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->blockManager = $block_manager;
  $this->renderer = $renderer;
  $this->response = new AjaxResponse();
}