class StaticDiscoveryTestDecoratedClass

Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php \Drupal\Tests\Component\Plugin\Discovery\StaticDiscoveryTestDecoratedClass

A class extending StaticDiscovery for testing purposes.

Hierarchy

Expanded class hierarchy of StaticDiscoveryTestDecoratedClass

File

core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php, line 233

Namespace

Drupal\Tests\Component\Plugin\Discovery
View source
class StaticDiscoveryTestDecoratedClass extends StaticDiscovery {
    public function getDefinitions() : array {
        return [];
    }
    public function complexArguments(mixed ...$args) : array {
        return $args;
    }
    public function noArguments() : 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
DiscoveryTrait::doGetDefinition protected function Gets a specific plugin definition.
DiscoveryTrait::hasDefinition public function
StaticDiscovery::deleteDefinition public function Deletes a plugin definition.
StaticDiscovery::setDefinition public function Sets a plugin definition.
StaticDiscoveryTestDecoratedClass::complexArguments public function
StaticDiscoveryTestDecoratedClass::getDefinitions public function Gets the definition of all plugins for this type. Overrides StaticDiscovery::getDefinitions
StaticDiscoveryTestDecoratedClass::noArguments public function

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