TYPO3 CMS  TYPO3_6-2
HeaderElement.php
Go to the documentation of this file.
1 <?php
3 
23 
29  public function getData() {
30  return $this->wrapContent($this->getContent());
31  }
32 
39  protected function wrapContent($content) {
40  if (isset($this->properties['headingSize']) && preg_match('#^h[1-5]$#', $this->properties['headingSize'])) {
41  $content = '<' . $this->properties['headingSize'] . '>' . $content . '</' . $this->properties['headingSize'] . '>';
42  }
43  return $content;
44  }
45 
46 }