| @@ 190-201 (lines=12) @@ | ||
| 187 | return $content; |
|
| 188 | } |
|
| 189 | ||
| 190 | protected function load() |
|
| 191 | { |
|
| 192 | $contentCollection = $this->matchContents('load'); |
|
| 193 | ||
| 194 | if (count($contentCollection) > 1 && isset($this->dsl['references'])) { |
|
| 195 | throw new \Exception("Can not execute Content load because multiple contents match, and a references section is specified in the dsl. References can be set when only 1 content matches"); |
|
| 196 | } |
|
| 197 | ||
| 198 | $this->setReferences($contentCollection); |
|
| 199 | ||
| 200 | return $contentCollection; |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|
| 204 | * Handle the content update migration action type |
|
| @@ 92-103 (lines=12) @@ | ||
| 89 | return $locationCollection; |
|
| 90 | } |
|
| 91 | ||
| 92 | protected function load() |
|
| 93 | { |
|
| 94 | $locationCollection = $this->matchLocations('load'); |
|
| 95 | ||
| 96 | if (count($locationCollection) > 1 && isset($this->dsl['references'])) { |
|
| 97 | throw new \Exception("Can not execute Location load because multiple locations match, and a references section is specified in the dsl. References can be set when only 1 location matches"); |
|
| 98 | } |
|
| 99 | ||
| 100 | $this->setReferences($locationCollection); |
|
| 101 | ||
| 102 | return $locationCollection; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Updates information for a location like priority, sort field and sort order. |
|