UsingNonInstalledTraitClass.php

Same filename in other branches
  1. 11.x core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/UsingNonInstalledTraitClass.php

Namespace

Drupal\plugin_test\Plugin\plugin_test\custom_annotation

File

core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/custom_annotation/UsingNonInstalledTraitClass.php

View source
<?php

namespace Drupal\plugin_test\Plugin\plugin_test\custom_annotation;

use Drupal\Core\Security\Attribute\TrustedCallback;
use Drupal\non_installed_module\NonExistingTrait;

/**
 * This class does not have a plugin attribute or plugin annotation on purpose.
 */
class UsingNonInstalledTraitClass {
    use NonExistingTrait;
    public function testMethod() {
    }

}

Classes

Title Deprecated Summary
UsingNonInstalledTraitClass This class does not have a plugin attribute or plugin annotation on purpose.

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