addReCaptchaConfigurationNode.

@return ArrayNodeDefinition|NodeDefinition
16052
private function addReCaptchaConfigurationNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('recaptcha');

        $node
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('http_proxy')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->scalarNode('host')->defaultValue(null)->end()
                        ->scalarNode('port')->defaultValue(null)->end()
                        ->scalarNode('auth')->defaultValue(null)->end()
                    ->end()
                ->end()
                ->arrayNode('parameters')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->booleanNode('enabled')->defaultTrue()->end()
                        ->booleanNode('enable_host_check')->defaultFalse()->end()
                        ->scalarNode('api_endpoint')->defaultValue('https://www.google.com/recaptcha/api')->end()
                        ->arrayNode('trusted_roles')->prototype('scalar')->treatNullLike(array())->end()
                    ->end()
                ->end()
            ->end()
        ;

        return $node;
    }
750587
public function appendConfiguration(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->children()
                ->arrayNode('vcs')
                    ->children()
                        ->scalarNode('url')->end()
                        ->arrayNode('export')
                            ->children()
                                ->scalarNode('revfile')->isRequired()->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
1037951
public function appendConfiguration(ArrayNodeDefinition $rootNode)
    {
        $rootNode
            ->children()
                ->arrayNode('qa')
                    ->children()
                        ->arrayNode('phpcs')
                        ->children()
                        ->arrayNode('dir')
                        ->prototype('scalar')->end()
                        ->performNoDeepMerging()
                        ->end()
                        ->scalarNode('standard')->end()
                        ->scalarNode('options')->end()
                        ->end()
                        ->end()
                        ->arrayNode('jshint')
                        ->children()
                        ->arrayNode('files')
                        ->beforeNormalization()
                        ->ifString()->then(
                        function($v) {
                            return array_filter(array($v));
                        }
                    )
                        ->end()
                        ->prototype('scalar')->end()
                        ->performNoDeepMerging()
                        ->end()
                        ->scalarNode('run')->end()
                        ->end()
                    ->end()
                ->end()
        ->end();
    }
344922
public function addme()
    {
        //control captcha
        $captcha = oxNew('oeCaptcha');
        if (!$captcha->passCaptcha(false)) {
            $this->_iPriceAlarmStatus = 2;

            return;
        }

        return parent::addme();
    }
1035192
private function addCouchbaseNode()
    {
        $builder = new TreeBuilder('couchbase');
        $node    = $this->getRootNode($builder, 'couchbase');

        $node
            ->addDefaultsIfNotSet()
            ->fixXmlConfig('hostname')
            ->children()
                ->scalarNode('connection_id')->defaultNull()->end()
                ->arrayNode('hostnames')
                    ->prototype('scalar')->end()
                    ->defaultValue(array('%doctrine_cache.couchbase.hostnames%'))
                ->end()
                ->scalarNode('username')->defaultNull()->end()
                ->scalarNode('password')->defaultNull()->end()
                ->scalarNode('bucket_name')->defaultValue('doctrine_cache')->end()
            ->end()
        ;

        return $node;
    }
20052
private function addBlocksSection(ArrayNodeDefinition $node)
    {
        $node
            ->children()
                ->arrayNode('blocks')
                    ->addDefaultsIfNotSet()
                    ->children()
                        ->arrayNode('alert')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/alert.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Primary' => 'primary',
                                        'Success' => 'success',
                                        'Info' => 'info',
                                        'Warning' => 'warning',
                                        'Danger' => 'danger',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('button')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/button.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Button small' => 'btn-sm',
                                        'Button large' => 'btn-lg',
                                        'Button primary' => 'btn-primary',
                                        'Button default' => 'btn-default',
                                        'Button block' => 'btn-block',
                                        'Center block' => 'center-block',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('card')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/card.html.twig')->end()
                                ->arrayNode('presets')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                        'Card' => 'card',
                                        'Card overlay' => 'card-overlay',
                                        'List' => 'list',
                                        'News' => 'news',
                                    ])
                                ->end()
                                ->arrayNode('backgrounds')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                    ])
                                ->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Image Background' => 'card-img-bg',
                                        'Inverse' => 'card-inverse',
                                        'Primary' => 'card-primary',
                                        'Success' => 'card-success',
                                        'Info' => 'card-info',
                                        'Warning' => 'card-warning',
                                        'Danger' => 'card-danger',
                                        'Primary Outline' => 'card-outline-primary',
                                        'Secondary Outline' => 'card-outline-secondary',
                                        'Success Outline' => 'card-outline-success',
                                        'Info Outline' => 'card-outline-info',
                                        'Warning Outline' => 'card-outline-warning',
                                        'Danger Outline' => 'card-outline-danger',
                                        'Card text top' => 'card-xs-top',
                                        'Card text middle' => 'card-xs-middle',
                                        'Card text bottom' => 'card-xs-bottom',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('carousel')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/carousel.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('carousel_slide')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/carousel_slide.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->defaultValue(['default'])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('collection')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/collection.html.twig')->end()
                                ->arrayNode('filter_placement')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Above the collection' => 'top',
                                        'In a modal window' => 'modal',
                                    ])
                                ->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([])
                                ->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('content_item')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/content_item.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('iframe')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/iframe.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->defaultValue(['default'])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('javascript')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/javascript.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('column')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Layout/column.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'label.column_m_t_md' => 'm-t-md',
                                        'label.column_m_b_md' => 'm-b-md',
                                        'label.column_m_t_lg' => 'm-t-lg',
                                        'label.column_m_b_lg' => 'm-b-lg',
                                    ])
                                ->end()
                            ->end()
                        ->end()

                        ->arrayNode('container')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Layout/container.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                ->end()
                                ->arrayNode('spacing_box_model')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Spacing outside (margin)' => 'm',
                                        'Spacing inside (padding)' => 'p',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('section')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Layout/section.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Small vertical padding' => 'py-1',
                                        'Medium vertical padding' => 'py-2',
                                        'Large vertical padding' => 'py-3',
                                        'Small vertical margin' => 'my-1',
                                        'Medium vertical margin' => 'my-2',
                                        'Large vertical margin' => 'my-3',
                                    ])
                                ->end()
                                ->arrayNode('spacing_box_model')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Spacing outside (margin)' => 'm',
                                        'Spacing inside (padding)' => 'p',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('gallery')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/gallery.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('html')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/html.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('image')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/image.html.twig')->end()
                                ->arrayNode('allowed_filters')
                                    ->prototype('scalar')->end()
                                    ->defaultValue([
                                        'dashboard_content' => 'medialibrary'
                                    ])
                                ->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Responsive image' => 'img-fluid',
                                        'Rounded image' => 'img-rounded',
                                        'Circular image' => 'img-circle',
                                        'Thumbnail image' => 'img-thumbnail',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('jumbotron')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/jumbotron.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([
                                        'Jumbotron small' => 'jumbotron-sm',
                                        'Jumbotron medium' => 'jumbotron-md',
                                        'Jumbotron large' => 'jumbotron-lg',
                                        'Text-color regular' => 'text-regular',
                                        'Text-color contrast' => 'text-contrast',
                                    ])
                                ->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('list')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/list.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([])
                                ->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                        'Card (deprecated)' => 'card',
                                        'Card overlay (deprecated)' => 'card-overlay',
                                        'List (deprecated)' => 'list',
                                        'News (deprecated)' => 'news',
                                        'Cards' => 'ListBlock--cards',
                                        'Cards overlay' => 'ListBlock--cards-overlay',
                                        'Cards overlay full width' => 'ListBlock--cards-bleed',
                                        'Cards horizontal scroll' => 'ListBlock--horizontal-scroll',
                                        'List' => 'ListBlock--list',
                                        'Media' => 'ListBlock--media',
                                        'Table' => 'ListBlock--table',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('modal')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/modal.html.twig')->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->defaultValue([])
                                ->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('navbar')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Navigation/navbar.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('navigation')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/navigation.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Navigation bar' => 'navbar',
                                        'Sitemap' => 'sitemap',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('navlink')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Navigation/navlink.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('related_collection')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/related_collection.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Default' => 'default',
                                    ])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('tabnav')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Layout/tabnav.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([
                                        'Horizontal tabs' => 'tabs-horizontal',
                                        'Horizontal pills' => 'pills-horizontal',
                                        'Vertical tabs' => 'tabs-vertical',
                                        'Vertical pills' => 'pills-vertical',
                                    ])
                                ->end()
                                ->arrayNode('styles')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('socialshare')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/socialshare.html.twig')->end()
                                ->arrayNode('templates')
                                    ->prototype('scalar')->end()
                                    ->normalizeKeys(false)
                                    ->useAttributeAsKey('name')
                                    ->defaultValue([])
                                ->end()
                            ->end()
                        ->end()
                        ->arrayNode('css')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/css.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('pointer')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/pointer.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('video')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/video.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('cookiewall')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/cookiewall.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('downloads')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/downloads.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('breadcrumbs')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/breadcrumbs.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('avatar')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/avatar.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('search_results')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/search_results.html.twig')->end()
                            ->end()
                        ->end()
                        ->arrayNode('data_view')
                            ->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('view')->defaultValue('OpiferContentBundle:Block:Content/data_view.html.twig')->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;
    }
506541
protected function addExtraFormTypesNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('types');

        $node
            ->defaultValue(array())
            ->useAttributeAsKey('id')
            ->prototype('array')
                ->children()
                    ->scalarNode('parent')->defaultNull()->end()
                    ->scalarNode('form_type')->isRequired()->end()
                    ->booleanNode('abstract')->defaultFalse()->end()
                    ->scalarNode('description')->defaultNull()->end()
                    ->scalarNode('icon')->defaultNull()->end()
                    ->arrayNode('extra_form_options')
                        ->defaultValue(array())
                        ->useAttributeAsKey('id')
                        ->prototype('array')
                            ->children()
                                ->scalarNode('extra_form_type')->isRequired()->end()
                                ->arrayNode('options')
                                    ->defaultValue(array())->useAttributeAsKey('id')->prototype('variable')->end()
                                ->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;

        return $node;
    }
399847
protected function lexOperationDefinition(): OperationDefinitionNode
    {
        $start = $this->lexer->getToken();

        if ($this->peek(TokenKindEnum::BRACE_L)) {
            // Anonymous query
            return new OperationDefinitionNode(
                KeywordEnum::QUERY,
                null,
                [],
                [],
                $this->lexSelectionSet(),
                $this->createLocation($start)
            );
        }

        $operation = $this->lexOperationType();

        if ($this->peek(TokenKindEnum::NAME)) {
            $name = $this->lexName();
        }

        return new OperationDefinitionNode(
            $operation,
            $name ?? null,
            $this->lexVariableDefinitions(),
            $this->lexDirectives(),
            $this->lexSelectionSet(),
            $this->createLocation($start)
        );
    }
1308761
protected function instantiateNode()
    {
        return new FloatNode($this->name, $this->parent, $this->min, $this->max);
    }
417283
protected function addOptionsNode()
    {
        $builder = new TreeBuilder();
        $node    = $builder->root('options');

        $node
            ->prototype('variable')
            ->end();

        return $node;
    }
789216
private function constDeclaration() {
    $node = new ConstantDeclarationNode();
    $name_node = new NameNode();
    $this->mustMatch(T_STRING, $name_node, NULL, TRUE);
    $node->addChild($name_node, 'name');
    if ($this->mustMatch('=', $node)) {
      $node->addChild($this->staticScalar(), 'value');
    }
    return $node;
  }
1324358
protected function generateNodeTypeDefinitions()
    {
        $code = '';
        /** @var NodeType $nodeType */
        foreach ($this->nodeTypeManager->getNodeTypes(false) as $nodeType) {
            $code .= $this->generateFusionForNodeType($nodeType);
        }
        return $code;
    }
1269396
public function addNode(Node $node)
    {
        if (isset($this->idList[$node->id])) {
            /**
             * @todo -> fix this behavior so the get last is working again
             */
            $node->setId($this->getNextPossibleIdInContext($node));
        }

        // add to the keylist for iterations
        if (isset($this->keyList[$node->key])) {
            $this->keyList[$node->key]->push($node);
        } else {
            $this->keyList[$node->key] = new \SplDoublyLinkedList();
            $this->keyList[$node->key]->push($node);
        }

        $this->list[$node->key]  = $node;
        $this->idList[$node->id] = $node;

        return $this;
    }
1087807
public function recaptchaParameters()
    {
        $apiConfig = $this->apiConfig('google.recaptcha');
        $tplConfig = $this->get('recaptcha_options') ?: [];

        $params = [
            'sitekey'  => $this->recaptchaSiteKey(),
            'badge'    => null,
            'type'     => null,
            'size'     => 'invisible',
            'tabindex' => null,
            'callback' => null,
        ];

        if ($this->recaptchaInvisible() === false) {
            $params['size'] = null;
        }

        foreach ($params as $key => $val) {
            if ($val === null || $val === '') {
                if (isset($tplConfig[$key])) {
                    $val = $tplConfig[$key];
                } elseif (isset($apiConfig[$key])) {
                    $val = $apiConfig[$key];
                }

                $params[$key] = $val;
            }
        }

        return $params;
    }
555725
public function generateVieSchema()
    {
        if ($this->configuration !== null) {
            return $this->configuration;
        }

        $nodeTypes = $this->nodeTypeManager->getNodeTypes();
        foreach ($nodeTypes as $nodeTypeName => $nodeType) {
            $this->readNodeTypeConfiguration($nodeTypeName, $nodeType);
        }

        unset($this->types['typo3:unstructured']);

        foreach ($this->types as $nodeTypeName => $nodeTypeDefinition) {
            $this->types[$nodeTypeName]->subtypes = $this->getAllSubtypes($nodeTypeName);
            $this->types[$nodeTypeName]->ancestors = $this->getAllAncestors($nodeTypeName);

            $this->removeUndeclaredTypes($this->types[$nodeTypeName]->supertypes);
            $this->removeUndeclaredTypes($this->types[$nodeTypeName]->ancestors);
        }

        foreach ($this->properties as $property => $propertyConfiguration) {
            if (isset($propertyConfiguration->domains) && is_array($propertyConfiguration->domains)) {
                foreach ($propertyConfiguration->domains as $domain) {
                    if (preg_match('/TYPO3\.Neos\.NodeTypes:.*Column/', $domain)) {
                        $this->properties[$property]->ranges = array_keys($this->types);
                    }
                }
            }
        }

        // Convert the Neos.Neos:ContentCollection element to support content-collection
        // TODO Move to node type definition
        if (isset($this->types['typo3:Neos.Neos:ContentCollection'])) {
            $this->addProperty('typo3:Neos.Neos:ContentCollection', 'typo3:content-collection', []);
            $this->types['typo3:Neos.Neos:ContentCollection']->specific_properties[] = 'typo3:content-collection';
            $this->properties['typo3:content-collection']->ranges = array_keys($this->types);
        }

        $this->configuration = (object) [
            'types' => (object) $this->types,
            'properties' => (object) $this->properties,
        ];
        return $this->configuration;
    }
726965
protected function addKinesisConfiguration(ArrayNodeDefinition $rootNode) {
        $rootNode->children()
            ->arrayNode('kinesis')
                ->children()
                    ->scalarNode('api_version')->defaultValue('2013-12-02')->end()
                    ->scalarNode('region')->isRequired()->end()
                    ->arrayNode('consumer')
                        ->children()
                            ->scalarNode('recovery_file')->isRequired()->end()
                            ->scalarNode('key')->isRequired()->end()
                            ->scalarNode('secret')->isRequired()->end()
                        ->end()
                    ->end()
                    ->arrayNode('producer')
                        ->children()
                            ->scalarNode('key')->isRequired()->end()
                            ->scalarNode('secret')->isRequired()->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ->end();
    }
1140056
public function nodes()
    {
        $request = $this->createRequestInstance(self::CAT_NODES, null, null);

        return $this->client->send($request);
    }