| 1 | <?php |
||
| 17 | class Embed extends ClosedElement implements FlowContent, PhrasingContent, EmbeddedContent, InteractiveContent |
||
| 18 | { |
||
| 19 | 1 | protected function getAllowedAttributes() |
|
| 20 | { |
||
| 21 | $embedAllowedAttributes = array( |
||
| 22 | 1 | '/^src$/i' => Attribute::URI, |
|
| 23 | '/^type$/i' => Attribute::CS_STRING, |
||
| 24 | '/^name$/i' => Attribute::CS_STRING, |
||
| 25 | '/^[a-z_-]$/i' => Attribute::CS_STRING |
||
| 26 | ); |
||
| 27 | |||
| 28 | 1 | return array_merge( |
|
| 29 | 1 | $embedAllowedAttributes, |
|
| 30 | 1 | parent::getAllowedAttributes() |
|
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | 1 | public function isInteractiveContent() : bool |
|
| 38 | } |
||
| 39 |