protected function ScheduledTransitionsEntityHooks::mirrorOperations in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/ScheduledTransitionsEntityHooks.php \Drupal\scheduled_transitions\ScheduledTransitionsEntityHooks::mirrorOperations()
Get the operation to mirror to, if enabled.
Parameters
string $operation: An operation to mirror to.
Return value
string|null An operation, or NULL if not enabled.
1 call to ScheduledTransitionsEntityHooks::mirrorOperations()
File
- src/
ScheduledTransitionsEntityHooks.php, line 207
Class
- ScheduledTransitionsEntityHooks
- Entity related hooks for Scheduled Transitions module.
Namespace
Drupal\scheduled_transitionsCode
protected function mirrorOperations(string $operation) : ?string {
$mirrorOperation = $this->configFactory
->get('scheduled_transitions.settings')
->get('mirror_operations.' . $operation);
return is_string($mirrorOperation) ? $mirrorOperation : NULL;
}