Vendor/langcode-conv/zendframework/zend-filter/src/StripTags.php
public function setAttributesAllowed($attributesAllowed)
    {
        if (!is_array($attributesAllowed)) {
            $attributesAllowed = [$attributesAllowed];
        }

        // Store each attribute as allowed
        foreach ($attributesAllowed as $attribute) {
            if (is_string($attribute)) {
                // Canonicalize the attribute name
                $attributeName = strtolower($attribute);
                $this->attributesAllowed[$attributeName] = null;
            }
        }

        return $this;
    }
public function setAttributesAllowed($attributesAllowed)
    {
        if (!is_array($attributesAllowed)) {
            $attributesAllowed = [$attributesAllowed];
        }

        // Store each attribute as allowed
        foreach ($attributesAllowed as $attribute) {
            if (is_string($attribute)) {
                // Canonicalize the attribute name
                $attributeName = strtolower($attribute);
                $this->attributesAllowed[$attributeName] = null;
            }
        }

        return $this;
    }
public function setAttributesAllowed ( $ attributesAllowed ) { if ( ! is_array ( $ attributesAllowed ) ) { $ attributesAllowed = [ $ attributesAllowed ] ; } // Store each attribute as allowed foreach ( $ attributesAllowed as $ attribute ) { if ( is_string ( $ attribute ) ) { // Canonicalize the attribute name $ attributeName = strtolower ( $ attribute ) ; $ this -> attributesAllowed [ $ attributeName ] = null ; } } return $ this ; }
Sets the attributesAllowed option

@param  array|string $attributesAllowed
@return self Provides a fluent interface
Sets the attributesAllowed option