TestConfigurablePlugin.php

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

Namespace

Drupal\Tests\Core\Plugin\Fixtures

File

core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Core\Plugin\Fixtures;

use Drupal\Core\Plugin\ConfigurablePluginBase;
use Drupal\Core\Plugin\RemovableDependentPluginInterface;
use Drupal\Core\Plugin\RemovableDependentPluginReturn;

/**
 * A configurable plugin implementation used for testing.
 */
class TestConfigurablePlugin extends ConfigurablePluginBase implements RemovableDependentPluginInterface {
  
  /**
   * {@inheritdoc}
   */
  public function calculateDependencies() : array {
    return [];
  }
  
  /**
   * {@inheritdoc}
   */
  public function onCollectionDependencyRemoval(array $dependencies) : RemovableDependentPluginReturn {
    return RemovableDependentPluginReturn::Unchanged;
  }

}

Classes

Title Deprecated Summary
TestConfigurablePlugin A configurable plugin implementation used for testing.

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