class PluginTestHooks

Hook implementations for plugin_test.

Hierarchy

Expanded class hierarchy of PluginTestHooks

File

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

Namespace

Drupal\plugin_test\Hook
View source
class PluginTestHooks {
  
  /**
   * Implements hook_test_plugin_info().
   */
  public function testPluginInfo() : array {
    return [
      'apple' => [
        'id' => 'apple',
        'class' => Apple::class,
      ],
    ];
  }
  
  /**
   * Implements hook_plugin_test_alter().
   */
  public function pluginTestAlter(&$definitions) : void {
    foreach ($definitions as &$definition) {
      $definition['altered'] = TRUE;
    }
    $definitions['user_login']['altered_single'] = TRUE;
  }

}

Members

Title Sort descending Modifiers Object type Summary
PluginTestHooks::pluginTestAlter public function Implements hook_plugin_test_alter().
PluginTestHooks::testPluginInfo public function Implements hook_test_plugin_info().

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