You are here

public function LikeDislikePermissions::__construct in Like & Dislike 8

Constructs a \Drupal\like_and_dislike\Form\SettingsForm object.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info_service: The bundle info service.

File

src/LikeDislikePermissions.php, line 51

Class

LikeDislikePermissions
Provides dynamic permissions for nodes of different types.

Namespace

Drupal\like_and_dislike

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, EntityTypeBundleInfoInterface $bundle_info_service) {
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
  $this->bundleInfoService = $bundle_info_service;
}