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

Breadcrumb

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

function Cron::lazyLoadItself

Lazy loads the real service from the container.

Return value

object Returns the constructed real service.

File

core/lib/Drupal/Core/ProxyClass/Cron.php, line 61

Class

Cron
Provides a proxy class for \Drupal\Core\Cron.

Namespace

Drupal\Core\ProxyClass

Code

protected function lazyLoadItself() {
    if (!isset($this->service)) {
        $this->service = $this->container
            ->get($this->drupalProxyOriginalServiceId);
    }
    return $this->service;
}

API Navigation

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