You are here

protected function RequiredTest::getRequiredPlugin in Tamper 8

Get a plugin configured to require items.

Return value

\Drupal\tamper\Plugin\Tamper\Required Plugin instance.

1 call to RequiredTest::getRequiredPlugin()
RequiredTest::instantiatePlugin in tests/src/Unit/Plugin/Tamper/RequiredTest.php
Instantiates a plugin.

File

tests/src/Unit/Plugin/Tamper/RequiredTest.php, line 147

Class

RequiredTest
Test the required plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

protected function getRequiredPlugin() {
  $config = [
    Required::SETTING_INVERT => FALSE,
  ];
  $plugin = new Required($config, 'required', [], $this
    ->getMockSourceDefinition());
  return $plugin;
}