Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DeprecatedHookImplementation.php

function DeprecatedHookImplementation::buildError

1 call to DeprecatedHookImplementation::buildError()
DeprecatedHookImplementation::processNode in vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/DeprecatedHookImplementation.php

File

vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/DeprecatedHookImplementation.php, line 95

Class

DeprecatedHookImplementation
@implements Rule<Function_>

Namespace

mglaman\PHPStanDrupal\Rules\Deprecations

Code

private function buildError(string $function_name, string $hook_name, ?string $deprecated_description) : array {
    $deprecated_description = $deprecated_description !== null ? " {$deprecated_description}" : ".";
    return [
        RuleErrorBuilder::message("Function {$function_name} implements {$hook_name} which is deprecated{$deprecated_description}")->build(),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal