You are here

protected function PaymentMethodConfiguration::entityTypeManager in Payment 8.2

Gets the entity type manager.

Return value

\Drupal\Core\Entity\EntityTypeManagerInterface

Overrides EntityBase::entityTypeManager

File

src/Entity/PaymentMethodConfiguration.php, line 234

Class

PaymentMethodConfiguration
Defines a payment method configuration entity.

Namespace

Drupal\payment\Entity

Code

protected function entityTypeManager() {
  if (!$this->entityTypeManager) {
    $this->entityTypeManager = \Drupal::entityTypeManager();
  }
  return $this->entityTypeManager;
}