function CustomPlugin::__construct

Same name in this branch
  1. 10 core/tests/fixtures/plugins/CustomPlugin.php \com\example\PluginNamespace\CustomPlugin::__construct()
Same name in other branches
  1. 11.x core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php \com\example\PluginNamespace\CustomPlugin::__construct()
  2. 11.x core/tests/fixtures/plugins/CustomPlugin.php \com\example\PluginNamespace\CustomPlugin::__construct()

Constructs a CustomPlugin attribute object.

Parameters

string $id: The attribute class ID.

string $title: The title.

Overrides Plugin::__construct

File

core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php, line 23

Class

CustomPlugin
Custom plugin attribute.

Namespace

com\example\PluginNamespace

Code

public function __construct(string $id, string $title) {
}

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