protected function BlazyUnitTestTrait::setFormatterDefinition in Blazy 8
Same name and namespace in other branches
- 8.2 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 207
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;
}