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

Constructor

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

Fichier

./quicktabs.classes.inc, line 394

Classe

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;
}