Core/Executor/LocationManager.php 1 location
|
@@ 276-284 (lines=9) @@
|
| 273 |
|
* @param \eZ\Publish\API\Repository\Values\Content\Location|LocationCollection $location |
| 274 |
|
* @return boolean |
| 275 |
|
*/ |
| 276 |
|
protected function setReferences($location, $step) |
| 277 |
|
{ |
| 278 |
|
if (!array_key_exists('references', $step->dsl)) { |
| 279 |
|
return false; |
| 280 |
|
} |
| 281 |
|
|
| 282 |
|
$references = $this->setReferencesCommon($location, $step->dsl['references']); |
| 283 |
|
$location = $this->insureSingleEntity($location, $references); |
| 284 |
|
} |
| 285 |
|
|
| 286 |
|
/** |
| 287 |
|
* @param Location $location |
Core/Executor/ObjectStateGroupManager.php 1 location
|
@@ 148-156 (lines=9) @@
|
| 145 |
|
* {@inheritdoc} |
| 146 |
|
* @param \eZ\Publish\API\Repository\Values\ObjectState\ObjectStateGroup|ObjectStateGroupCollection $objectStateGroup |
| 147 |
|
*/ |
| 148 |
|
protected function setReferences($objectStateGroup, $step) |
| 149 |
|
{ |
| 150 |
|
if (!array_key_exists('references', $step->dsl)) { |
| 151 |
|
return false; |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
$references = $this->setReferencesCommon($objectStateGroup, $step->dsl['references']); |
| 155 |
|
$objectStateGroup = $this->insureSingleEntity($objectStateGroup, $references); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* @param ObjectStateGroup $objectStateGroup |
Core/Executor/SectionManager.php 1 location
|
@@ 128-136 (lines=9) @@
|
| 125 |
|
* @throws \InvalidArgumentException When trying to set a reference to an unsupported attribute |
| 126 |
|
* @return boolean |
| 127 |
|
*/ |
| 128 |
|
protected function setReferences($section, $step) |
| 129 |
|
{ |
| 130 |
|
if (!array_key_exists('references', $step->dsl)) { |
| 131 |
|
return false; |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
$references = $this->setReferencesCommon($section, $step->dsl['references']); |
| 135 |
|
$section = $this->insureSingleEntity($section, $references); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
/** |
| 139 |
|
* @param Section $section |
Core/Executor/TagManager.php 1 location
|
@@ 174-183 (lines=10) @@
|
| 171 |
|
* |
| 172 |
|
* @todo add support for keyword (with language), |
| 173 |
|
*/ |
| 174 |
|
protected function setReferences($object, $step) |
| 175 |
|
{ |
| 176 |
|
if (!array_key_exists('references', $step->dsl)) { |
| 177 |
|
return false; |
| 178 |
|
} |
| 179 |
|
|
| 180 |
|
$references = $this->setReferencesCommon($object, $step->dsl['references']); |
| 181 |
|
/** @var \Netgen\TagsBundle\API\Repository\Values\Tags\Tag $object */ |
| 182 |
|
$object = $this->insureSingleEntity($object, $references); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
/** |
| 186 |
|
* @param Tag $object |