You are here

class dsFieldTheme in Display Suite 6.3

The theme field type

Hierarchy

Expanded class hierarchy of dsFieldTheme

1 string reference to 'dsFieldTheme'
theme.inc in plugins/ds_field/theme.inc

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

Namesort descending Modifiers Type Description Overrides
dsField::$attributes protected property Field attributes
dsField::$content public property Content for the field
dsField::$key public property Field key
dsField::$settings public property Field settings
dsField::build function Build an individual field value
dsField::defaults protected function Return default values for a field
dsField::getContent function Get content for use in a field.
dsField::initialise public function Initialise field defaults
dsField::render public function Return a value for a field or group 1
dsField::setting public function Wrapper to set a value on a field
dsFieldTheme::formatContent public function Format content for use in an item Overrides dsField::formatContent