class DrupalStandardsListenerDeprecatedClass

Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php \Drupal\deprecation_test\Deprecation\DrupalStandardsListenerDeprecatedClass
  2. 10 core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php \Drupal\deprecation_test\Deprecation\DrupalStandardsListenerDeprecatedClass
  3. 11.x core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php \Drupal\deprecation_test\Deprecation\DrupalStandardsListenerDeprecatedClass

Fixture class for use by DrupalStandardsListenerDeprecationTest.

This class is arbitrarily deprecated in order to test the deprecation error handling properties of DrupalStandardsListener.

Hierarchy

Expanded class hierarchy of DrupalStandardsListenerDeprecatedClass

See also

\Drupal\Tests\Core\Listeners\DrupalStandardsListenerDeprecationTest

\Drupal\Tests\Listeners\DrupalStandardsListener::endTest()

File

core/modules/system/tests/modules/deprecation_test/src/Deprecation/DrupalStandardsListenerDeprecatedClass.php, line 16

Namespace

Drupal\deprecation_test\Deprecation
View source
class DrupalStandardsListenerDeprecatedClass {
    
    /**
     * Returns a known value.
     *
     * @return string
     *   A known return value.
     */
    public function testFunction() {
        return 'test';
    }

}

Members

Title Sort descending Modifiers Object type Summary
DrupalStandardsListenerDeprecatedClass::testFunction public function Returns a known value.

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