function CustomPlugin::__construct

Same name and namespace in other branches
  1. 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/fixtures/plugins/CustomPlugin.php, line 23

Class

CustomPlugin
Custom plugin attribute.

Namespace

com\example\PluginNamespace

Code

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

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