UpdateTestSchemaRequirements.php
Namespace
Drupal\update_test_schema\HookFile
-
core/
modules/ system/ tests/ modules/ update_test_schema/ src/ Hook/ UpdateTestSchemaRequirements.php
View source
<?php
declare (strict_types=1);
namespace Drupal\update_test_schema\Hook;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Hook\Attribute\Hook;
use Drupal\Core\Url;
/**
* Requirements for the Update Test Schema module.
*/
class UpdateTestSchemaRequirements {
/**
* Implements hook_runtime_requirements().
*/
public function runtime() : array {
$requirements = [];
$requirements['path_alias_test'] = [
'title' => 'Path alias test',
'value' => 'Check a path alias for the admin page',
'severity' => REQUIREMENT_INFO,
'description' => new FormattableMarkup('Visit <a href=":link">the structure page</a> to do many useful things.', [
':link' => Url::fromRoute('system.admin_structure')->toString(),
]),
];
return $requirements;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
UpdateTestSchemaRequirements | Requirements for the Update Test Schema module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.