class DiscoveryCachedTraitMockableClass

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryCachedTraitTest.php \Drupal\Tests\Component\Plugin\Discovery\DiscoveryCachedTraitMockableClass

A class using the DiscoveryCachedTrait for mocking purposes.

Hierarchy

Expanded class hierarchy of DiscoveryCachedTraitMockableClass

File

core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryCachedTraitTest.php, line 73

Namespace

Drupal\Tests\Component\Plugin\Discovery
View source
class DiscoveryCachedTraitMockableClass {
    use DiscoveryCachedTrait;
    public function getDefinitions() : array {
        return [];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DiscoveryCachedTrait::$definitions protected property Cached definitions array. 1
DiscoveryCachedTrait::getDefinition public function Overrides DiscoveryTrait::getDefinition 3
DiscoveryCachedTraitMockableClass::getDefinitions public function Overrides DiscoveryTrait::getDefinitions
DiscoveryTrait::doGetDefinition protected function Gets a specific plugin definition.
DiscoveryTrait::hasDefinition public function

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