function DevelGenerate::__construct
Constructs a DevelGenerate attribute.
Parameters
string $id: The plugin ID.
\Drupal\Core\StringTranslation\TranslatableMarkup|string $label: The human-readable name of the DevelGenerate type.
\Drupal\Core\StringTranslation\TranslatableMarkup|string $description: A short description of the DevelGenerate type.
string $url: A url to access the plugin settings form.
string $permission: The permission required to access the plugin settings form.
array $settings: (optional) An array of settings passed to the DevelGenerate settingsForm. The keys are the names of the settings and the values are the default values for those settings.
string[] $dependencies: (optional) Modules that should be enabled in order to make the plugin discoverable.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
File
-
devel_generate/
src/ Attribute/ DevelGenerate.php, line 52
Class
- DevelGenerate
- Defines a DevelGenerate attribute object.
Namespace
Drupal\devel_generate\AttributeCode
public function __construct(public readonly string $id, public readonly TranslatableMarkup|string $label, public readonly TranslatableMarkup|string $description, public readonly string $url, public readonly string $permission, public readonly array $settings = [], array $dependencies = [], public readonly ?string $deriver = NULL) {
$this->moduleDependencies = $dependencies;
}