private function guessTemplateName()
	{
		if ($this->package === null) {
			throw new \RuntimeException(sprintf(
				'Block package is unknown, thus it is impossible to guess template name for block [%s].',
				$this->getTitle()
			));
		}

		$name = (new \ReflectionClass($this))->getShortName();

		if (($pos = strpos($name, 'Config')) !== false
			&& $pos === (strlen($name) - 6)) {

			$name = substr($name, 0, -6);
		}

		return $this->package->getName() . ':blocks' . DIRECTORY_SEPARATOR . Inflector::tableize($name) . '.html.twig';
	}
private function guessTemplateName()
	{
		if ($this->package === null) {
			throw new \RuntimeException(sprintf(
				'Block package is unknown, thus it is impossible to guess template name for block [%s].',
				$this->getTitle()
			));
		}

		$name = (new \ReflectionClass($this))->getShortName();

		if (($pos = strpos($name, 'Config')) !== false
			&& $pos === (strlen($name) - 6)) {

			$name = substr($name, 0, -6);
		}

		return $this->package->getName() . ':blocks' . DIRECTORY_SEPARATOR . Inflector::tableize($name) . '.html.twig';
	}
private function guessTemplateName ( ) { if ( $ this -> package === null ) { throw new \ RuntimeException ( sprintf ( 'Block package is unknown, thus it is impossible to guess template name for block [%s].' , $ this -> getTitle ( ) ) ) ; } $ name = ( new \ ReflectionClass ( $ this ) ) -> getShortName ( ) ; if ( ( $ pos = strpos ( $ name , 'Config' ) ) !== false && $ pos === ( strlen ( $ name ) - 6 ) ) { $ name = substr ( $ name , 0 , - 6 ) ; } return $ this -> package -> getName ( ) . ':blocks' . DIRECTORY_SEPARATOR . Inflector :: tableize ( $ name ) . '.html.twig' ; }
Tries to guess block template name.
@return string
Tries to guess block template name .