protected function configureImage(NodeInterface $node, NodeType $nodeType, array $config = [])
    {
        $this->configureCreateAssistanceChildNodes($node, $nodeType, $config);

        switch ($node->getParent()->getNodeType()->getName()) {
            // Image slider: enable caption by default
            case 'M12.Foundation:Orbit':
                if (!$node->getProperty('hasCaption')) {
                    $node->setProperty('hasCaption', true);
                    $node->setProperty('caption', 'Image caption');
                }
                break;
        }
    }
protected function configureImage(NodeInterface $node, NodeType $nodeType, array $config = [])
    {
        $this->configureCreateAssistanceChildNodes($node, $nodeType, $config);

        switch ($node->getParent()->getNodeType()->getName()) {
            // Image slider: enable caption by default
            case 'M12.Foundation:Orbit':
                if (!$node->getProperty('hasCaption')) {
                    $node->setProperty('hasCaption', true);
                    $node->setProperty('caption', 'Image caption');
                }
                break;
        }
    }
protected function configureImage ( NodeInterface $ node , NodeType $ nodeType , array $ config = [ ] ) { $ this -> configureCreateAssistanceChildNodes ( $ node , $ nodeType , $ config ) ; switch ( $ node -> getParent ( ) -> getNodeType ( ) -> getName ( ) ) { // Image slider: enable caption by default case 'M12.Foundation:Orbit' : if ( ! $ node -> getProperty ( 'hasCaption' ) ) { $ node -> setProperty ( 'hasCaption' , true ) ; $ node -> setProperty ( 'caption' , 'Image caption' ) ; } break ; } }
Configure Image node
E.g. when Image is inserted inside Orbit slider, it will have caption ON by default.

@param NodeInterface $node
@param NodeType $nodeType
@param array $config
Configure Image node E . g . when Image is inserted inside Orbit slider it will have caption ON by default .