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

Breadcrumb

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

function OneofDescriptor::isSynthetic

Same name in this branch
  1. 11.1.x vendor/google/protobuf/src/Google/Protobuf/OneofDescriptor.php \Google\Protobuf\OneofDescriptor::isSynthetic()

File

vendor/google/protobuf/src/Google/Protobuf/Internal/OneofDescriptor.php, line 45

Class

OneofDescriptor

Namespace

Google\Protobuf\Internal

Code

public function isSynthetic() {
    return !is_null($this->fields) && count($this->fields) === 1 && $this->fields[0]
        ->getProto3Optional();
}

API Navigation

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