Commit 0df8fd45 authored by catch's avatar catch
Browse files

Issue #3461421 by VinmayiSwamy, ankitv18, joachim, smustgrave:...

Issue #3461421 by VinmayiSwamy, ankitv18, joachim, smustgrave: getProcessPlugins() normalises the process array twice

(cherry picked from commit b12eb2b2)
parent acd475c7
Loading
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -400,13 +400,12 @@ public function getSourcePlugin() {
   * {@inheritdoc}
   */
  public function getProcessPlugins(?array $process = NULL) {
    if (!isset($process)) {
      $process = $this->getProcess();
    }
    $process = isset($process) ? $this->getProcessNormalized($process) : $this->getProcess();
    $index = serialize($process);
    if (!isset($this->processPlugins[$index])) {
      $this->processPlugins[$index] = [];
      foreach ($this->getProcessNormalized($process) as $property => $configurations) {

      foreach ($process as $property => $configurations) {
        $this->processPlugins[$index][$property] = [];
        foreach ($configurations as $configuration) {
          if (isset($configuration['source'])) {