public function StylesDefault::getPrefix in Styles 7.2
File
- includes/
Styles.inc, line 274 - Styles.inc Base class for Styles.
Class
- StylesDefault
- @file Styles.inc Base class for Styles.
Code
public function getPrefix() {
$prefix = $this
->get('prefix');
if (!isset($prefix)) {
$wrapperType = $this
->getWrapperType();
$id = $this
->getId();
$_id = $this->_id++;
$classes = $this
->getClasses();
$prefix = "<{$wrapperType} id=\"styles-{$id}-{$_id}\" class=\"{$classes}\">";
}
return $prefix;
}