You are here

protected function PluginTypeManagerTest::buildPluginDefinitionYaml in Plugin 8.2

Builds a plugin type definition file.

Parameters

string $id:

Return value

string

1 call to PluginTypeManagerTest::buildPluginDefinitionYaml()
PluginTypeManagerTest::setUp in tests/src/Unit/PluginType/PluginTypeManagerTest.php

File

tests/src/Unit/PluginType/PluginTypeManagerTest.php, line 77

Class

PluginTypeManagerTest
@coversDefaultClass \Drupal\plugin\PluginType\PluginTypeManager

Namespace

Drupal\Tests\plugin\Unit\PluginType

Code

protected function buildPluginDefinitionYaml($id, $label, $description, $provider, $plugin_manager_service_id) {
  return <<<EOT
{<span class="php-variable">$id</span>}:
  label: "{<span class="php-variable">$label</span>}"
  description: "{<span class="php-variable">$description</span>}"
  provider: {<span class="php-variable">$provider</span>}
  plugin_manager_service_id: {<span class="php-variable">$plugin_manager_service_id</span>}
EOT;
}