public function CliCommandsInterface::disable in Site Alert 8
Disables site alert(s).
Parameters
string|null $label: The label of a site alert to disable. If omitted, all site alerts will be disabled.
Return value
int The number of site alerts that were disabled.
Throws
\Drupal\Core\Entity\EntityStorageException Thrown when an error occurs while disabling a site alert.
1 method overrides CliCommandsInterface::disable()
- CliCommands::disable in src/
CliCommands.php - Disables site alert(s).
File
- src/
CliCommandsInterface.php, line 89
Class
- CliCommandsInterface
- Interface for a service with shared code for CLI tools.
Namespace
Drupal\site_alertCode
public function disable(?string $label = NULL) : int;