public function RatePermissions::__construct in Rate 8.2
Same name and namespace in other branches
- 8 src/RatePermissions.php \Drupal\rate\RatePermissions::__construct()
Constructs Permissions object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service, or NULL if not available.
File
- src/
RatePermissions.php, line 51
Class
- RatePermissions
- Class to return permissions based on entity type for rate module.
Namespace
Drupal\rateCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, CommentManagerInterface $comment_manager = NULL) {
$this->config = $config_factory
->get('rate.settings');
$this->entityTypeManager = $entity_type_manager;
$this->commentManager = $comment_manager;
}