protected function extractConfiguration(DOMElement $embed) { $hash = array(); $configElements = $embed->getElementsByTagName('ezconfig'); if ($configElements->length) { $hash = $this->extractHash($configElements->item(0)); } return $hash; }