class dsFieldTheme in Display Suite 6.3
The theme field type
Hierarchy
- class \dsField
- class \dsFieldTheme
Expanded class hierarchy of dsFieldTheme
File
- plugins/
ds_field/ theme.inc, line 17
View source
class dsFieldTheme extends dsField {
/**
* Format content for use in an item
*/
public function formatContent() {
$content = NULL;
if (isset($this->settings['formatter'])) {
// Load includes
if (isset($this->settings['file'])) {
include_once $this->settings['file'];
}
$this->content = theme($this->settings['formatter'], $this->settings);
return $this->content;
}
return FALSE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
dsField:: |
protected | property | Field attributes | |
dsField:: |
public | property | Content for the field | |
dsField:: |
public | property | Field key | |
dsField:: |
public | property | Field settings | |
dsField:: |
function | Build an individual field value | ||
dsField:: |
protected | function | Return default values for a field | |
dsField:: |
function | Get content for use in a field. | ||
dsField:: |
public | function | Initialise field defaults | |
dsField:: |
public | function | Return a value for a field or group | 1 |
dsField:: |
public | function | Wrapper to set a value on a field | |
dsFieldTheme:: |
public | function |
Format content for use in an item Overrides dsField:: |