public function getLayoutName($media = TemplateLayout::MEDIA_SCREEN)
	{
		$templateLayouts = $this->getTemplateLayouts();

		if ($templateLayouts->offsetExists($media)) {
			$templateLayout = $templateLayouts->offsetGet($media);
			/* @var $templateLayout TemplateLayout */

			return $templateLayout->getLayoutName();
		}

		throw new \RuntimeException(sprintf(
				'Template [%s] has no layout for media [%s]',
				$this->getId(),
				$media
		));
	}
public function getLayoutName($media = TemplateLayout::MEDIA_SCREEN)
	{
		$templateLayouts = $this->getTemplateLayouts();

		if ($templateLayouts->offsetExists($media)) {
			$templateLayout = $templateLayouts->offsetGet($media);
			/* @var $templateLayout TemplateLayout */

			return $templateLayout->getLayoutName();
		}

		throw new \RuntimeException(sprintf(
				'Template [%s] has no layout for media [%s]',
				$this->getId(),
				$media
		));
	}
public function getLayoutName ( $ media = TemplateLayout :: MEDIA_SCREEN ) { $ templateLayouts = $ this -> getTemplateLayouts ( ) ; if ( $ templateLayouts -> offsetExists ( $ media ) ) { $ templateLayout = $ templateLayouts -> offsetGet ( $ media ) ; /* @var $templateLayout TemplateLayout */ return $ templateLayout -> getLayoutName ( ) ; } throw new \ RuntimeException ( sprintf ( 'Template [%s] has no layout for media [%s]' , $ this -> getId ( ) , $ media ) ) ; }
Get layout name for specified media type.

@param string $media
@return string
Get layout name for specified media type .