protected function containsBlock(DOMElement $paragraph)
    {
        $xpath = new DOMXPath($paragraph->ownerDocument);
        $containedExpression = $this->getContainmentMapXPathExpression(false);

        return
            $xpath->query($containedExpression, $paragraph)->length !== 0
            || $xpath->query('custom/paragraph', $paragraph)->length !== 0
            || $xpath->query('custom/section', $paragraph)->length !== 0
        ;
    }
protected function containsBlock(DOMElement $paragraph)
    {
        $xpath = new DOMXPath($paragraph->ownerDocument);
        $containedExpression = $this->getContainmentMapXPathExpression(false);

        return
            $xpath->query($containedExpression, $paragraph)->length !== 0
            || $xpath->query('custom/paragraph', $paragraph)->length !== 0
            || $xpath->query('custom/section', $paragraph)->length !== 0
        ;
    }
protected function containsBlock ( DOMElement $ paragraph ) { $ xpath = new DOMXPath ( $ paragraph -> ownerDocument ) ; $ containedExpression = $ this -> getContainmentMapXPathExpression ( false ) ; return $ xpath -> query ( $ containedExpression , $ paragraph ) -> length !== 0 || $ xpath -> query ( 'custom/paragraph' , $ paragraph ) -> length !== 0 || $ xpath -> query ( 'custom/section' , $ paragraph ) -> length !== 0 ; }
Check whether the paragraph contains a block element. The block elements
are listed in the containment map. In addition, the custom tags can also
be a block element. This is detected by checking if the paragraph
contains a `custom` element which also contains a `paragraph`.

@param \DOMElement $paragraph
@return bool
Check whether the paragraph contains a block element . The block elements are listed in the containment map . In addition the custom tags can also be a block element . This is detected by checking if the paragraph contains a custom element which also contains a paragraph .