public function FieldInfo::__construct

Constructs this FieldInfo object.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend to use.

\Drupal\Core\Config\ConfigFactory $config: The configuration factory object to use.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler class to use for invoking hooks.

File

drupal/core/modules/field/lib/Drupal/field/FieldInfo.php, line 127
Contains \Drupal\field\FieldInfo.

Class

FieldInfo
Provides field and instance definitions for the current runtime environment.

Namespace

Drupal\field

Code

public function __construct(CacheBackendInterface $cache_backend, ConfigFactory $config, ModuleHandlerInterface $module_handler) {
  $this->cacheBackend = $cache_backend;
  $this->moduleHandler = $module_handler;
  $this->config = $config;
}