DrupalStandardsListenerDeprecatedClass.php
Same filename in other branches
- 9 core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php
- 8.9.x core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php
- 10 core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php
Namespace
Drupal\deprecation_test\DeprecationFile
-
core/
modules/ system/ tests/ modules/ deprecation_test/ src/ Deprecation/ DrupalStandardsListenerDeprecatedClass.php
View source
<?php
declare (strict_types=1);
namespace Drupal\deprecation_test\Deprecation;
// phpcs:ignore Drupal.Semantics.FunctionTriggerError
@trigger_error(__NAMESPACE__ . '\\DrupalStandardsListenerDeprecatedClass is deprecated.', E_USER_DEPRECATED);
/**
* Fixture class for use by DrupalStandardsListenerDeprecationTest.
*
* This class is arbitrarily deprecated in order to test the deprecation error
* handling properties of DrupalStandardsListener.
*
* @see \Drupal\Tests\Core\Listeners\DrupalStandardsListenerDeprecationTest
* @see \Drupal\Tests\Listeners\DrupalStandardsListener::endTest()
*/
class DrupalStandardsListenerDeprecatedClass {
/**
* Returns a known value.
*
* @return string
* A known return value.
*/
public function testFunction() {
return 'test';
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
DrupalStandardsListenerDeprecatedClass | Fixture class for use by DrupalStandardsListenerDeprecationTest. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.