1515use Neos \Eel \ProtectedContextAwareInterface ;
1616use Neos \Flow \Annotations as Flow ;
1717use Neos \Flow \I18n \Translator ;
18- use Neos \Neos \Service \ContentElementEditableService ;
19- use Neos \Neos \Service \ContentElementWrappingService ;
2018
2119/**
2220 * The generic abstract component presentation object factory implementation
@@ -25,17 +23,6 @@ abstract class AbstractComponentPresentationObjectFactory implements
2523 ComponentPresentationObjectFactoryInterface,
2624 ProtectedContextAwareInterface
2725{
28- /**
29- * @Flow\Inject
30- * @var ContentElementWrappingService
31- */
32- protected $ contentElementWrappingService ;
33-
34- /**
35- * @Flow\Inject
36- * @var ContentElementEditableService
37- */
38- protected $ contentElementEditableService ;
3926
4027 #[Flow \Inject]
4128 protected UriServiceInterface $ uriService ;
@@ -52,41 +39,6 @@ abstract class AbstractComponentPresentationObjectFactory implements
5239 */
5340 protected $ nodeTypeConstraintFactory ;
5441
55- /**
56- * @param TraversableNodeInterface $node
57- * @param PresentationObjectComponentImplementation $fusionObject
58- * @return callable
59- * @deprecated since 3.0 Use PackageFactory\AtomicFusion\PresentationObjects\Presentation\Slot\Content for content integration pusposes instead
60- */
61- final protected function createWrapper (TraversableNodeInterface $ node , PresentationObjectComponentImplementation $ fusionObject ): callable
62- {
63- $ wrappingService = $ this ->contentElementWrappingService ;
64-
65- return function (string $ content ) use ($ node , $ fusionObject , $ wrappingService ) {
66- /** @var NodeInterface $node */
67- return $ wrappingService ->wrapContentObject ($ node , $ content , $ fusionObject ->getPath ());
68- };
69- }
70-
71- /**
72- * @param TraversableNodeInterface $node
73- * @param string $propertyName
74- * @param boolean $block
75- * @return string
76- * @deprecated since 3.0 Use PackageFactory\AtomicFusion\PresentationObjects\Presentation\Slot\Editable for editable property integration pusposes instead
77- */
78- final protected function getEditableProperty (TraversableNodeInterface $ node , string $ propertyName , bool $ block = false ): string
79- {
80- /** @var NodeInterface $node */
81- return $ this ->contentElementEditableService ->wrapContentProperty (
82- $ node ,
83- $ propertyName ,
84- ($ block ? '<div> ' : '' )
85- . ($ node ->getProperty ($ propertyName ) ?: '' )
86- . ($ block ? '</div> ' : '' )
87- );
88- }
89-
9042 /**
9143 * @param TraversableNodeInterface $parentNode
9244 * @param string $nodeTypeFilterString
0 commit comments