function ConfigQueryTest::concatProtectedProperty

Same name and namespace in other branches
  1. 10 core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php \Drupal\config_test\Entity\ConfigQueryTest::concatProtectedProperty()

Concatenates the two params and sets the protected property value.

Attributes

#[ActionMethod]

Parameters

string $value1: The first value to concatenate.

string $value2: The second value to concatenate.

Return value

$this The config entity.

Overrides ConfigTest::concatProtectedProperty

File

core/modules/config/tests/config_test/src/Entity/ConfigQueryTest.php, line 59

Class

ConfigQueryTest
Defines the ConfigQueryTest configuration entity used by the query test.

Namespace

Drupal\config_test\Entity

Code

public function concatProtectedProperty(string $value1, string $value2) : static {
  // This method intentionally does not have the config action attribute to
  // ensure it is still discovered.
  return parent::concatProtectedProperty($value1, $value2);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.