CommonTestCronHelperHooks.php
Namespace
Drupal\common_test_cron_helper\HookFile
-
core/
modules/ system/ tests/ modules/ common_test_cron_helper/ src/ Hook/ CommonTestCronHelperHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\common_test_cron_helper\Hook;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for common_test_cron_helper.
*/
class CommonTestCronHelperHooks {
/**
* Implements hook_cron().
*
* Function common_test_cron() throws an exception, but the execution should
* reach this function as well.
*
* @see common_test_cron()
*/
public function cron() {
\Drupal::state()->set('common_test.cron', 'success');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
CommonTestCronHelperHooks | Hook implementations for common_test_cron_helper. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.