You are here

public function CliCommandsInterface::validateCreateInput in Site Alert 8

Validates the input for the 'create' command.

Parameters

string $label: The label argument.

string $message: The message argument.

array $options: An array of options, passed by reference. The 'start' and 'end' options will be converted from a human readable string to the standard datetime storage format.

Throws

\InvalidArgumentException Thrown when a passed in argument or option is invalid.

See also

\Drupal\site_alert\CliCommands::create()

1 method overrides CliCommandsInterface::validateCreateInput()
CliCommands::validateCreateInput in src/CliCommands.php
Validates the input for the 'create' command.

File

src/CliCommandsInterface.php, line 58

Class

CliCommandsInterface
Interface for a service with shared code for CLI tools.

Namespace

Drupal\site_alert

Code

public function validateCreateInput(string $label, string $message, array &$options) : void;