Generator.php

Namespace

Drupal\devel_generate\Attributes

File

devel_generate/src/Attributes/Generator.php

View source
<?php

declare (strict_types=1);
namespace Drupal\devel_generate\Attributes;

use Consolidation\AnnotatedCommand\Parser\CommandInfo;

/**
 * Devel generate plugin details.
 */
class Generator {
    public function __construct(string $id) {
    }
    public static function handle(\ReflectionAttribute $attribute, CommandInfo $commandInfo) : void {
        $args = $attribute->getArguments();
        $commandInfo->addAnnotation('pluginId', $args['id']);
    }

}

Classes

Title Deprecated Summary
Generator Devel generate plugin details.