function CustomPlugin::__construct

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/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.