TestConfigurablePlugin.php in Drupal 10
File
core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php
View source
<?php
namespace Drupal\Tests\Core\Plugin\Fixtures;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\PluginBase;
class TestConfigurablePlugin extends PluginBase implements ConfigurableInterface, DependentPluginInterface {
public function getConfiguration() {
return $this->configuration;
}
public function setConfiguration(array $configuration) {
$this->configuration = $configuration;
}
public function defaultConfiguration() {
return [];
}
public function calculateDependencies() {
return [];
}
}