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

Breadcrumb

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

class Optional

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

  • class \Symfony\Component\Validator\Constraint
    • class \Symfony\Component\Validator\Constraints\Composite extends \Symfony\Component\Validator\Constraint
      • class \Symfony\Component\Validator\Constraints\Existence extends \Symfony\Component\Validator\Constraints\Composite
        • class \Symfony\Component\Validator\Constraints\Optional extends \Symfony\Component\Validator\Constraints\Existence

Expanded class hierarchy of Optional

2 files declare their use of Optional
ProjectRelease.php in core/modules/update/src/ProjectRelease.php
Recipe.php in core/lib/Drupal/Core/Recipe/Recipe.php
6 string references to 'Optional'
CommentItem::fieldSettingsForm in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Returns a form for the field-level settings.
FilterPluginBase::buildExposedFiltersGroupForm in core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
Build the form to let users create the group of exposed filters.
LinkItem::fieldSettingsForm in core/modules/link/src/Plugin/Field/FieldType/LinkItem.php
Returns a form for the field-level settings.
NodeTypeForm::form in core/modules/node/src/NodeTypeForm.php
Gets the actual form array to be built.
Search::defineOptions in core/modules/search/src/Plugin/views/filter/Search.php
Information about options for all kinds of purposes will be held here.

... See full list

File

vendor/symfony/validator/Constraints/Optional.php, line 17

Namespace

Symfony\Component\Validator\Constraints
View source
class Optional extends Existence {

}

API Navigation

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