core-bundle/src/Resources/contao/elements/ContentAccordionStart.php
protected function compile()
	{
		if (TL_MODE == 'BE')
		{
			$this->strTemplate = 'be_wildcard';

			$this->Template = new BackendTemplate($this->strTemplate);
			$this->Template->title = $this->mooHeadline;
		}

		$classes = StringUtil::deserialize($this->mooClasses);

		$this->Template->toggler = $classes[0] ?: 'toggler';
		$this->Template->accordion = $classes[1] ?: 'accordion';
		$this->Template->headlineStyle = $this->mooStyle;
		$this->Template->headline = $this->mooHeadline;
	}
protected function compile()
	{
		if (TL_MODE == 'BE')
		{
			$this->strTemplate = 'be_wildcard';

			$this->Template = new BackendTemplate($this->strTemplate);
			$this->Template->title = $this->mooHeadline;
		}

		$classes = StringUtil::deserialize($this->mooClasses);

		$this->Template->toggler = $classes[0] ?: 'toggler';
		$this->Template->accordion = $classes[1] ?: 'accordion';
		$this->Template->headlineStyle = $this->mooStyle;
		$this->Template->headline = $this->mooHeadline;
	}
protected function compile ( ) { if ( TL_MODE == 'BE' ) { $ this -> strTemplate = 'be_wildcard' ; $ this -> Template = new BackendTemplate ( $ this -> strTemplate ) ; $ this -> Template -> title = $ this -> mooHeadline ; } $ classes = StringUtil :: deserialize ( $ this -> mooClasses ) ; $ this -> Template -> toggler = $ classes [ 0 ] ? : 'toggler' ; $ this -> Template -> accordion = $ classes [ 1 ] ? : 'accordion' ; $ this -> Template -> headlineStyle = $ this -> mooStyle ; $ this -> Template -> headline = $ this -> mooHeadline ; }
Generate the content element
Generate the content element