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

Breadcrumb

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

function DescriptorPool::addDescriptor

1 call to DescriptorPool::addDescriptor()
DescriptorPool::internalAddGeneratedFile in vendor/google/protobuf/src/Google/Protobuf/Internal/DescriptorPool.php

File

vendor/google/protobuf/src/Google/Protobuf/Internal/DescriptorPool.php, line 70

Class

DescriptorPool

Namespace

Google\Protobuf\Internal

Code

public function addDescriptor($descriptor) {
    $this->proto_to_class[$descriptor->getFullName()] = $descriptor->getClass();
    $this->class_to_desc[$descriptor->getClass()] = $descriptor;
    $this->class_to_desc[$descriptor->getLegacyClass()] = $descriptor;
    $this->class_to_desc[$descriptor->getPreviouslyUnreservedClass()] = $descriptor;
    foreach ($descriptor->getNestedType() as $nested_type) {
        $this->addDescriptor($nested_type);
    }
    foreach ($descriptor->getEnumType() as $enum_type) {
        $this->addEnumDescriptor($enum_type);
    }
}

API Navigation

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