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

Breadcrumb

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

function Definition::hasMethodCall

Check if the current definition has a given method to call after service initialization.

File

vendor/symfony/dependency-injection/Definition.php, line 356

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function hasMethodCall(string $method) : bool {
    foreach ($this->calls as $call) {
        if ($call[0] === $method) {
            return true;
        }
    }
    return false;
}
RSS feed
Powered by Drupal