You are here

protected function BlazyUnitTestTrait::setFormatterDefinition in Blazy 8.2

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

Sets the field formatter definition.

Parameters

string $definition: The key definition defining scope for form elements.

mixed|string|bool $value: The defined value.

Return value

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

File

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

Class

BlazyUnitTestTrait
A Trait common for Blazy Unit tests.

Namespace

Drupal\Tests\blazy\Traits

Code

protected function setFormatterDefinition($definition, $value) {
  $this->formatterDefinition[$definition] = $value;
  return $this;
}