function TestTrait::getStuff

Same name in other branches
  1. 9 core/modules/system/tests/src/Traits/TestTrait.php \Drupal\Tests\system\Traits\TestTrait::getStuff()
  2. 10 core/modules/system/tests/src/Traits/TestTrait.php \Drupal\Tests\system\Traits\TestTrait::getStuff()
  3. 11.x core/modules/system/tests/src/Traits/TestTrait.php \Drupal\Tests\system\Traits\TestTrait::getStuff()

Return a test string to a trait user.

Return value

string Just a random sort of string.

1 call to TestTrait::getStuff()
TraitAccessTest::testSimpleStuff in core/modules/system/tests/src/Unit/TraitAccessTest.php
@coversNothing

File

core/modules/system/tests/src/Traits/TestTrait.php, line 28

Class

TestTrait
A nothing trait, but declared in the Drupal\Tests namespace.

Namespace

Drupal\Tests\system\Traits

Code

protected function getStuff() {
    return $this->stuff;
}

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