You are here

public function MentionsDelete::__construct in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/mentions/src/EventSubscriber/MentionsDelete.php \Drupal\mentions\EventSubscriber\MentionsDelete::__construct()
  2. 10.1.x modules/custom/mentions/src/EventSubscriber/MentionsDelete.php \Drupal\mentions\EventSubscriber\MentionsDelete::__construct()
  3. 10.2.x modules/custom/mentions/src/EventSubscriber/MentionsDelete.php \Drupal\mentions\EventSubscriber\MentionsDelete::__construct()

MentionsDelete constructor.

Parameters

\Drupal\Core\Config\ConfigFactory $config_factory: The config factory.

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

File

modules/custom/mentions/src/EventSubscriber/MentionsDelete.php, line 36

Class

MentionsDelete
MentionsDelete handles event 'mentions.delete'.

Namespace

Drupal\mentions\EventSubscriber

Code

public function __construct(ConfigFactory $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
}