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

Breadcrumb

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

function ClassMetadata::getDefaultGroup

Returns the name of the default group for this class.

For each class, the group "Default" is an alias for the group "<ClassName>", where <ClassName> is the non-namespaced name of the class. All constraints implicitly or explicitly assigned to group "Default" belong to both of these groups, unless the class defines a group sequence.

If a class defines a group sequence, validating the class in "Default" will validate the group sequence. The constraints assigned to "Default" can still be validated by validating the class in "<ClassName>".

6 calls to ClassMetadata::getDefaultGroup()
ClassMetadata::addConstraint in vendor/symfony/validator/Mapping/ClassMetadata.php
If the constraint {@link Cascade} is added, the cascading strategy will be changed to {@link CascadingStrategy::CASCADE}.
ClassMetadata::addGetterConstraint in vendor/symfony/validator/Mapping/ClassMetadata.php
Adds a constraint to the getter of the given property.
ClassMetadata::addGetterMethodConstraint in vendor/symfony/validator/Mapping/ClassMetadata.php
Adds a constraint to the getter of the given property.
ClassMetadata::addPropertyConstraint in vendor/symfony/validator/Mapping/ClassMetadata.php
Adds a constraint to the given property.
ClassMetadata::mergeConstraints in vendor/symfony/validator/Mapping/ClassMetadata.php
Merges the constraints of the given metadata into this object.

... See full list

File

vendor/symfony/validator/Mapping/ClassMetadata.php, line 159

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function getDefaultGroup() : string {
    return $this->defaultGroup;
}

API Navigation

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