platform/api/symfony/Component/HtmlSanitizer/Visitor/AttributeSanitizer/AttributeSanitizerInterface.yaml
2024-09-02 10:44:11 -07:00

50 lines
1.1 KiB
YAML

name: AttributeSanitizerInterface
class_comment: null
dependencies:
- name: HtmlSanitizerConfig
type: class
source: Symfony\Component\HtmlSanitizer\HtmlSanitizerConfig
properties: []
methods:
- name: getSupportedElements
visibility: public
parameters: []
comment: '# * Implements attribute-specific sanitization logic.
# *
# * @author Titouan Galopin <galopintitouan@gmail.com>
# */
# interface AttributeSanitizerInterface
# {
# /**
# * Returns the list of element names supported, or null to support all elements.
# *
# * @return list<string>|null'
- name: getSupportedAttributes
visibility: public
parameters: []
comment: '# * Returns the list of attributes names supported, or null to support
all attributes.
# *
# * @return list<string>|null'
- name: sanitizeAttribute
visibility: public
parameters:
- name: element
- name: attribute
- name: value
- name: config
comment: '# * Returns the sanitized value of a given attribute for the given element.'
traits:
- Symfony\Component\HtmlSanitizer\HtmlSanitizerConfig
interfaces: []