public function ScheduledTransitionsUtility::__construct in Scheduled Transitions 2.x
Same name and namespace in other branches
- 8 src/ScheduledTransitionsUtility.php \Drupal\scheduled_transitions\ScheduledTransitionsUtility::__construct()
Constructs a new ScheduledTransitionsUtility.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: The bundle information service.
\Drupal\content_moderation\ModerationInformationInterface $moderationInformation: General service for moderation-related questions about Entity API.
\Drupal\Core\Utility\Token $token: The token replacement system.
\Drupal\Core\StringTranslation\TranslationInterface $stringTranslation: String translation manager.
File
- src/
ScheduledTransitionsUtility.php, line 103
Class
- ScheduledTransitionsUtility
- Utilities for Scheduled Transitions module.
Namespace
Drupal\scheduled_transitionsCode
public function __construct(ConfigFactoryInterface $configFactory, CacheBackendInterface $cache, EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, ModerationInformationInterface $moderationInformation, Token $token, TranslationInterface $stringTranslation) {
$this->configFactory = $configFactory;
$this->cache = $cache;
$this->entityTypeManager = $entityTypeManager;
$this->bundleInfo = $bundleInfo;
$this->moderationInformation = $moderationInformation;
$this->token = $token;
$this->stringTranslation = $stringTranslation;
}