class TestConfigurablePlugin

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
  2. 10 core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
  3. 9 core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin
  4. 8.9.x core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php \Drupal\Tests\Core\Plugin\Fixtures\TestConfigurablePlugin

A configurable plugin implementation used for testing.

Hierarchy

Expanded class hierarchy of TestConfigurablePlugin

3 files declare their use of TestConfigurablePlugin
BlockConfigEntityUnitTest.php in core/modules/block/tests/src/Unit/BlockConfigEntityUnitTest.php
ConfigEntityBaseUnitTest.php in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
DefaultLazyPluginCollectionTest.php in core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php

File

core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php, line 14

Namespace

Drupal\Tests\Core\Plugin\Fixtures
View source
class TestConfigurablePlugin extends ConfigurablePluginBase implements RemovableDependentPluginInterface {
  
  /**
   * {@inheritdoc}
   */
  public function calculateDependencies() : array {
    return [];
  }
  
  /**
   * {@inheritdoc}
   */
  public function onCollectionDependencyRemoval(array $dependencies) : RemovableDependentPluginReturn {
    return RemovableDependentPluginReturn::Unchanged;
  }

}

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