Neos\Neos\Service\HtmlAugmenter::elementHasAttributes PHP Метод

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

Checks whether the given $element contains at least one of the specified $attributes (case insensitive)
protected elementHasAttributes ( DOMNode $element, array $attributes = null ) : boolean
$element DOMNode
$attributes array array of attribute names to check (lowercase)
Результат boolean TRUE if at least one of the $attributes is contained in the given $element, otherwise FALSE
    protected function elementHasAttributes(\DOMNode $element, array $attributes = null)
    {
        if ($attributes === null) {
            return false;
        }
        /** @var $attribute \DOMAttr */
        foreach ($element->attributes as $attribute) {
            if (in_array(strtolower($attribute->name), $attributes)) {
                return true;
            }
        }
        return false;
    }