public function RatePermissions::__construct in Rate 8
Same name and namespace in other branches
- 8.2 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.
File
- src/
RatePermissions.php, line 41
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) {
$this->config = $config_factory
->get('rate.settings');
$this->entityTypeManager = $entity_type_manager;
}