AMP_Base_Sanitizer::filter_attachment_layout_attributes

AMP_Base_Sanitizer::filter_attachment_layout_attributes( DOMElement $node,  array $new_attributes,  string $layout )

Description #

Set attributes to node's parent element according to layout.


Parameters #

$node

(DOMElement) (Required) Node.

$new_attributes

(array) (Required) Attributes array.

$layout

(string) (Required) Layout.


Return #

(array) New attributes.