You are here

public function PanelsDisplayVariant::setStorage in Panels 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayVariant/PanelsDisplayVariant.php \Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant::setStorage()

Configures how this Panel is being stored.

Parameters

string $type: The storage type used by the storage plugin.

string $id: The id within the storage plugin for this Panels display.

Return value

$this

File

src/Plugin/DisplayVariant/PanelsDisplayVariant.php, line 275

Class

PanelsDisplayVariant
Provides a display variant that simply contains blocks.

Namespace

Drupal\panels\Plugin\DisplayVariant

Code

public function setStorage($type, $id) {
  $this->configuration['storage_type'] = $type;
  $this->configuration['storage_id'] = $id;
  return $this;
}