TestConfigurablePlugin.php

Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php
  2. 8.9.x core/tests/Drupal/Tests/Core/Plugin/Fixtures/TestConfigurablePlugin.php
  3. 10 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\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Component\Plugin\PluginBase;
class TestConfigurablePlugin extends PluginBase implements ConfigurableInterface, DependentPluginInterface {
    
    /**
     * {@inheritdoc}
     */
    public function getConfiguration() {
        return $this->configuration;
    }
    
    /**
     * {@inheritdoc}
     */
    public function setConfiguration(array $configuration) {
        $this->configuration = $configuration;
    }
    
    /**
     * {@inheritdoc}
     */
    public function defaultConfiguration() {
        return [];
    }
    
    /**
     * {@inheritdoc}
     */
    public function calculateDependencies() {
        return [];
    }

}

Classes

Title Deprecated Summary
TestConfigurablePlugin

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