protected function addTag($siteId, array $siteConfig)
	{
		$tag = new Tag([
			'attributes' => $this->getAttributesConfig($siteConfig),
			'rules'      => [
				'allowChild' => 'URL',
				'autoClose'  => true,
				'denyChild'  => [$siteId, $this->tagName]
			],
			'template'   => $this->templateBuilder->build($siteId, $siteConfig)
		]);

		$this->configurator->templateNormalizer->normalizeTag($tag);
		$this->configurator->templateChecker->checkTag($tag);
		$this->configurator->tags->add($siteId, $tag);

		return $tag;
	}
protected function addTag($siteId, array $siteConfig)
	{
		$tag = new Tag([
			'attributes' => $this->getAttributesConfig($siteConfig),
			'rules'      => [
				'allowChild' => 'URL',
				'autoClose'  => true,
				'denyChild'  => [$siteId, $this->tagName]
			],
			'template'   => $this->templateBuilder->build($siteId, $siteConfig)
		]);

		$this->configurator->templateNormalizer->normalizeTag($tag);
		$this->configurator->templateChecker->checkTag($tag);
		$this->configurator->tags->add($siteId, $tag);

		return $tag;
	}
protected function addTag ( $ siteId , array $ siteConfig ) { $ tag = new Tag ( [ 'attributes' => $ this -> getAttributesConfig ( $ siteConfig ) , 'rules' => [ 'allowChild' => 'URL' , 'autoClose' => true , 'denyChild' => [ $ siteId , $ this -> tagName ] ] , 'template' => $ this -> templateBuilder -> build ( $ siteId , $ siteConfig ) ] ) ; $ this -> configurator -> templateNormalizer -> normalizeTag ( $ tag ) ; $ this -> configurator -> templateChecker -> checkTag ( $ tag ) ; $ this -> configurator -> tags -> add ( $ siteId , $ tag ) ; return $ tag ; }
Create and return a tag that handles given media site

@param  string $siteId
@param  array  $siteConfig
@return Tag
Create and return a tag that handles given media site