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

Breadcrumb

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

function EntityData::__construct

File

vendor/mglaman/phpstan-drupal/src/Drupal/EntityData.php, line 33

Class

EntityData

Namespace

mglaman\PHPStanDrupal\Drupal

Code

public function __construct(string $entityTypeId, array $definition) {
    $this->entityTypeId = $entityTypeId;
    $this->className = $definition['class'] ?? null;
    $this->storageClassName = $definition['storage'] ?? null;
}

API Navigation

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