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() {
    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.