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

Breadcrumb

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

function AttributeMetadata::addGroup

Overrides AttributeMetadataInterface::addGroup

1 call to AttributeMetadata::addGroup()
AttributeMetadata::merge in vendor/symfony/serializer/Mapping/AttributeMetadata.php
Merges an {

File

vendor/symfony/serializer/Mapping/AttributeMetadata.php, line 91

Class

AttributeMetadata
@author Kévin Dunglas <dunglas@gmail.com>

Namespace

Symfony\Component\Serializer\Mapping

Code

public function addGroup(string $group) : void {
    if (!\in_array($group, $this->groups, true)) {
        $this->groups[] = $group;
    }
}
RSS feed
Powered by Drupal