MkCommands
final class MkCommands extends Command (View source)
Traits
A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.
Constants
| NAME |
|
Methods
Instantiates a new instance of the implementing class using autowiring.
No description
Convert generators into Annotated commands (for Help).
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Empty target directories.
Build an array since that's what HelpCLIFormatter expects.
Build an array since that's what HelpCLIFormatter expects.
Convert text like
Write content files, add to nav, build a redirect map.
No description
Get a filename from a command.
Details
static AutowireTrait
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
__construct(BootstrapManager $bootstrapManager, LoggerInterface $logger)
No description
protected int
execute(InputInterface $input, OutputInterface $output)
No description
array
createAnnotatedCommands(Application $application_generate, Application $application_drush)
Convert generators into Annotated commands (for Help).
static protected string
appendPostAmble()
No description
static protected string
appendAliases($command)
No description
static protected string
appendTopics(AnnotatedCommand $command, string $dir_commands)
No description
static protected string
appendOptions($command)
No description
static protected string
appendOptionsGlobal($application)
No description
static protected string
appendArguments($command)
No description
static protected string
appendUsages(Command $command)
No description
static protected string
appendPreamble($command, string $root)
No description
static protected string|null
getVersion(Command $command)
No description
protected void
writeYml(array $nav_commands, array $nav_generators, array $map_commands, array $map_generators, string $dest)
No description
protected void
writeAllMd(array $pages_all, string $destination_path, string $title)
No description
protected void
prepare($destination)
Empty target directories.
static iterable
argToArray(InputArgument $arg)
Build an array since that's what HelpCLIFormatter expects.
static iterable
optionToArray(InputOption $opt)
Build an array since that's what HelpCLIFormatter expects.
static string
cliTextToMarkdown(string $text)
Convert text like
array
writeContentFilesAndBuildNavAndBuildRedirectMap(array $namespaced, string $destination, string $dir_root, string $destination_path)
Write content files, add to nav, build a redirect map.
protected array
getRedirectMap(Command $command, string $destination)
No description
string
getFilename(string $name)
Get a filename from a command.