Same name and namespace in other branches
  1. 7.x-3.x quicktabs.classes.inc \QuickContent::__construct()

Constructor

2 methods override QuickContent::__construct()
QuickCallbackContent::__construct in src/Plugin/QuickContent/QuickCallbackContent.php
QuickViewContent::__construct in src/Plugin/QuickContent/QuickViewContent.php
Constructor

File

src/QuickContent.php, line 34

Class

QuickContent
Abstract base class for content plugins.

Namespace

Drupal\quicktabs

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