class Generator

Devel generate plugin details.

Hierarchy

  • class \Drupal\devel_generate\Attributes\Generator

Expanded class hierarchy of Generator

1 file declares its use of Generator
DevelGenerateCommands.php in devel_generate/src/Drush/Commands/DevelGenerateCommands.php

File

devel_generate/src/Attributes/Generator.php, line 12

Namespace

Drupal\devel_generate\Attributes
View source
class Generator {
    public function __construct(string $id) {
    }
    public static function handle(\ReflectionAttribute $attribute, CommandInfo $commandInfo) : void {
        $args = $attribute->getArguments();
        $commandInfo->addAnnotation('pluginId', $args['id']);
    }

}

Members

Title Sort descending Modifiers Object type Summary
Generator::handle public static function
Generator::__construct public function