function CustomPlugin::__construct
Same name in this branch
- 11.x core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php \com\example\PluginNamespace\CustomPlugin::__construct()
Same name in other branches
- 10 core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php \com\example\PluginNamespace\CustomPlugin::__construct()
- 10 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/ fixtures/ plugins/ CustomPlugin.php, line 23
Class
- CustomPlugin
- Custom plugin attribute.
Namespace
com\example\PluginNamespaceCode
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.