FixtureDeprecatedClass.php

Same filename in other branches
  1. 9 core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php
  2. 10 core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php
  3. 11.x core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php

Namespace

Drupal\deprecation_test\Deprecation

File

core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php

View source
<?php

namespace Drupal\deprecation_test\Deprecation;

@trigger_error(__NAMESPACE__ . '\\FixtureDeprecatedClass 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 FixtureDeprecatedClass {
    
    /**
     * Returns a known value.
     *
     * @return string
     *   A known return value.
     */
    public function testFunction() {
        return 'test';
    }

}

Classes

Title Deprecated Summary
FixtureDeprecatedClass Fixture class for use by DrupalStandardsListenerDeprecationTest.

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