-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/9.0' into task/3118/remove-plow-js
# Conflicts: # Classes/Service/NodePolicyService.php # packages/neos-ui-sagas/src/Changes/index.js # packages/neos-ui-sagas/src/Publish/index.js # packages/neos-ui/src/Containers/PrimaryToolbar/PublishDropDown/index.js
- Loading branch information
Showing
99 changed files
with
545 additions
and
1,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
namespace Neos\Neos\Ui\ContentRepository\Service; | ||
|
||
/* | ||
* This file is part of the Neos.Neos.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
|
||
use Neos\ContentRepository\Core\Factory\ContentRepositoryId; | ||
use Neos\ContentRepository\Core\Projection\ContentGraph\Node; | ||
use Neos\Neos\FrontendRouting\NodeAddressFactory; | ||
use Neos\ContentRepository\Core\Projection\ContentGraph\VisibilityConstraints; | ||
use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry; | ||
use Neos\Flow\Annotations as Flow; | ||
use Neos\Neos\Utility\NodeTypeWithFallbackProvider; | ||
|
||
/** | ||
* @internal | ||
* @Flow\Scope("singleton") | ||
*/ | ||
class NeosUiNodeService | ||
{ | ||
use NodeTypeWithFallbackProvider; | ||
|
||
#[Flow\Inject] | ||
protected ContentRepositoryRegistry $contentRepositoryRegistry; | ||
|
||
public function findNodeBySerializedNodeAddress(string $serializedNodeAddress, ContentRepositoryId $contentRepositoryId): ?Node | ||
{ | ||
$contentRepository = $this->contentRepositoryRegistry->get($contentRepositoryId); | ||
$nodeAddress = NodeAddressFactory::create($contentRepository)->createFromUriString($serializedNodeAddress); | ||
|
||
$subgraph = $contentRepository->getContentGraph()->getSubgraph( | ||
$nodeAddress->contentStreamId, | ||
$nodeAddress->dimensionSpacePoint, | ||
VisibilityConstraints::withoutRestrictions() | ||
); | ||
return $subgraph->findNodeById($nodeAddress->nodeAggregateId); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.