You are here

public function PcpService::__construct in Profile Complete Percent 8

PcpService constructor.

Parameters

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.

File

src/PcpService.php, line 39

Class

PcpService
Class PcpService.

Namespace

Drupal\pcp

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager, ConfigFactoryInterface $configFactory) {
  $this->entityFieldManager = $entityFieldManager;
  $this->config = $configFactory
    ->get('pcp.settings');
}