You are here

protected function ScheduledTransitionsEntityHooks::mirrorOperations in Scheduled Transitions 8

Same name and namespace in other branches
  1. 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()
ScheduledTransitionsEntityHooks::entityAccess in src/ScheduledTransitionsEntityHooks.php
Implements hook_entity_access().

File

src/ScheduledTransitionsEntityHooks.php, line 207

Class

ScheduledTransitionsEntityHooks
Entity related hooks for Scheduled Transitions module.

Namespace

Drupal\scheduled_transitions

Code

protected function mirrorOperations(string $operation) : ?string {
  $mirrorOperation = $this->configFactory
    ->get('scheduled_transitions.settings')
    ->get('mirror_operations.' . $operation);
  return is_string($mirrorOperation) ? $mirrorOperation : NULL;
}