Neos\ContentRepository\Tests\Functional\TypeConverter\NodeConverterTest::convert PHP Метод

convert() защищенный Метод

Helper which calls the NodeConverter; with some error-handling built in
protected convert ( $nodePath, PropertyMappingConfiguration $propertyMappingConfiguration = null ) : Neos\ContentRepository\Domain\Model\NodeInterface
$nodePath
$propertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfiguration
Результат Neos\ContentRepository\Domain\Model\NodeInterface
    protected function convert($nodePath, PropertyMappingConfiguration $propertyMappingConfiguration = null)
    {
        $nodeConverter = new NodeConverter();
        $result = $nodeConverter->convertFrom($nodePath, null, array(), $propertyMappingConfiguration);
        if ($result instanceof Error) {
            $this->fail('Failed with error: ' . $result->getMessage());
        }
        return $result;
    }