You are here

public function ConfigurablePluginInterfaceTest::testDeprecation in Drupal 8

Tests the deprecation error is thrown.

@expectedDeprecation Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement ConfigurableInterface and/or DependentPluginInterface directly as needed. If you implement ConfigurableInterface you may choose to implement ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility, however this must be removed prior to Drupal 9. See https://www.drupal.org/node/2946161

File

core/tests/Drupal/Tests/Component/Plugin/ConfigurablePluginInterfaceTest.php, line 22

Class

ConfigurablePluginInterfaceTest
Tests ConfigurablePluginInterface deprecation.

Namespace

Drupal\Tests\Component\Plugin

Code

public function testDeprecation() {
  new ConfigurablePluginInterfaceTestClass([], '', []);
}