function TestVariantCollectionTrait::setVariantConfig

Same name in other branches
  1. 4.0.x tests/src/Unit/VariantCollectionTraitTest.php \Drupal\Tests\ctools\Unit\TestVariantCollectionTrait::setVariantConfig()

Sets the variant configuration.

Parameters

array $config: The variant configuration.

Return value

$this

File

tests/src/Unit/VariantCollectionTraitTest.php, line 199

Class

TestVariantCollectionTrait

Namespace

Drupal\Tests\ctools\Unit

Code

public function setVariantConfig(array $config) {
    $this->variantConfig = $config;
    return $this;
}