protected function BlazyUnitTestTrait::setFormatterDefinition in Blazy 8.2
Same name and namespace in other branches
- 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\TraitsCode
protected function setFormatterDefinition($definition, $value) {
$this->formatterDefinition[$definition] = $value;
return $this;
}