You are here

public function EntityOperations::__construct in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/EntityOperations.php \Drupal\radioactivity\EntityOperations::__construct()

EntityOperations constructor.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: The entity type bundle info service.

File

src/EntityOperations.php, line 42

Class

EntityOperations
Defines a class for reacting to entity events.

Namespace

Drupal\radioactivity

Code

public function __construct(ModuleHandlerInterface $moduleHandler, EntityTypeBundleInfoInterface $bundleInfo) {
  $this->moduleHandler = $moduleHandler;
  $this->bundleInfo = $bundleInfo;
}