function ConfigTest::concatProtectedPropertyOptional
Same name in other branches
- 10 core/modules/config/tests/config_test/src/Entity/ConfigTest.php \Drupal\config_test\Entity\ConfigTest::concatProtectedPropertyOptional()
Concatenates up to two params and sets the protected property value.
Parameters
$value1: The first value to concatenate.
$value2: (optional) The second value to concatenate. Defaults to ''.
Return value
$this The config entity.
File
-
core/
modules/ config/ tests/ config_test/ src/ Entity/ ConfigTest.php, line 256
Class
- ConfigTest
- Defines the ConfigTest configuration entity.
Namespace
Drupal\config_test\EntityCode
public function concatProtectedPropertyOptional(string $value1, string $value2 = '') : static {
$this->protected_property = $value1 . $value2;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.