You are here

protected function BlazyUnitTestTrait::setFormatterSettings in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/src/Traits/BlazyUnitTestTrait.php \Drupal\Tests\blazy\Traits\BlazyUnitTestTrait::setFormatterSettings()

Sets formatter settings.

Parameters

array $settings: The given settings.

Return value

$this The class instance that this method is called on.

File

tests/src/Traits/BlazyUnitTestTrait.php, line 96

Class

BlazyUnitTestTrait
A Trait common for Blazy Unit tests.

Namespace

Drupal\Tests\blazy\Traits

Code

protected function setFormatterSettings(array $settings = []) {
  $this->formatterSettings = array_merge($this
    ->getFormatterSettings(), $settings);
  return $this;
}