Same name and namespace in other branches
  1. 8.x-1.x src/QuickContent.php \Drupal\quicktabs\QuickContent::__construct()

Constructor

2 methods override QuickContent::__construct()
QuickCallbackContent::__construct in plugins/QuickCallbackContent.inc
Constructor
QuickViewContent::__construct in plugins/QuickViewContent.inc
Constructor

File

./quicktabs.classes.inc, line 394

Class

QuickContent
Abstract base class for content plugins.

Code

public function __construct($item) {
    $this->title = isset($item['title']) ? $item['title'] : '';
    // We do not need to store title, type or weight in the settings array, which
    // is for type-specific settings.
    unset($item['title'], $item['type'], $item['weight']);
    $this->settings = $item;
}