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

Breadcrumb

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

function EntityDataRepository::get

File

vendor/mglaman/phpstan-drupal/src/Drupal/EntityDataRepository.php, line 27

Class

EntityDataRepository

Namespace

mglaman\PHPStanDrupal\Drupal

Code

public function get(string $entityTypeId) : EntityData {
    if (!isset($this->entityData[$entityTypeId])) {
        $this->entityData[$entityTypeId] = new EntityData($entityTypeId, []);
    }
    return $this->entityData[$entityTypeId];
}

API Navigation

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