final protected function createSourceElement($type, $src)
    {
        // Tag attributes
        $attrs = array(
            'src' => $src,
            'type' => $type
        );

        $node = new NodeElement();

        return $node->openTag('source')
                    ->addAttributes($attrs)
                    ->finalize(true);
    }
final protected function createSourceElement($type, $src)
    {
        // Tag attributes
        $attrs = array(
            'src' => $src,
            'type' => $type
        );

        $node = new NodeElement();

        return $node->openTag('source')
                    ->addAttributes($attrs)
                    ->finalize(true);
    }
final protected function createSourceElement ( $ type , $ src ) { // Tag attributes $ attrs = array ( 'src' => $ src , 'type' => $ type ) ; $ node = new NodeElement ( ) ; return $ node -> openTag ( 'source' ) -> addAttributes ( $ attrs ) -> finalize ( true ) ; }
Create inner source node element

@param string $type MIME-type
@param string $src Path to audio file
@return \Krystal\Form\NodeElement
Create inner source node element