| @@ 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 | * Handles the content update migration action type |
|
| @@ 95-106 (lines=12) @@ | ||
| 92 | return $locationCollection; |
|
| 93 | } |
|
| 94 | ||
| 95 | protected function load() |
|
| 96 | { |
|
| 97 | $locationCollection = $this->matchLocations('load'); |
|
| 98 | ||
| 99 | if (count($locationCollection) > 1 && isset($this->dsl['references'])) { |
|
| 100 | 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"); |
|
| 101 | } |
|
| 102 | ||
| 103 | $this->setReferences($locationCollection); |
|
| 104 | ||
| 105 | return $locationCollection; |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * Updates information for a location like priority, sort field and sort order. |
|