function PluginTestHooks::testPluginInfo

Implements hook_test_plugin_info().

File

core/modules/system/tests/modules/plugin_test/src/Hook/PluginTestHooks.php, line 18

Class

PluginTestHooks
Hook implementations for plugin_test.

Namespace

Drupal\plugin_test\Hook

Code

public function testPluginInfo() {
    return [
        'apple' => [
            'id' => 'apple',
            'class' => Apple::class,
        ],
    ];
}

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