class DiscoveryTraitMockableClass

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

A class using the DiscoveryTrait for mocking purposes.

Hierarchy

Expanded class hierarchy of DiscoveryTraitMockableClass

File

core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php, line 158

Namespace

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

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DiscoveryTrait::doGetDefinition protected function Gets a specific plugin definition.
DiscoveryTrait::getDefinition public function 3
DiscoveryTrait::hasDefinition public function
DiscoveryTraitMockableClass::getDefinitions public function Overrides DiscoveryTrait::getDefinitions

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