Neos\Neos\Fusion\ContentElementEditableImplementation::evaluate PHP Метод

evaluate() публичный Метод

Evaluate this TypoScript object and return the result
public evaluate ( ) : mixed
Результат mixed
    public function evaluate()
    {
        $content = $this->getValue();
        /** @var $node NodeInterface */
        $node = $this->tsValue('node');
        if (!$node instanceof NodeInterface) {
            return $content;
        }
        /** @var $property string */
        $property = $this->tsValue('property');
        /** @var $contentContext ContentContext */
        $contentContext = $node->getContext();
        if ($contentContext->getWorkspaceName() === 'live') {
            return $content;
        }
        if (!$this->privilegeManager->isPrivilegeTargetGranted('Neos.Neos:Backend.GeneralAccess')) {
            return $content;
        }
        if ($node->isRemoved()) {
            $content = '';
        }
        return $this->contentElementEditableService->wrapContentProperty($node, $property, $content);
    }
ContentElementEditableImplementation