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

Breadcrumb

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

class Reference

Same name in this branch
  1. 11.1.x vendor/symfony/var-exporter/Internal/Reference.php \Symfony\Component\VarExporter\Internal\Reference

Reference represents a service reference.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Reference

Expanded class hierarchy of Reference

79 files declare their use of Reference
AbstractConfigurator.php in vendor/symfony/dependency-injection/Loader/Configurator/AbstractConfigurator.php
AbstractRecursivePass.php in vendor/symfony/dependency-injection/Compiler/AbstractRecursivePass.php
AddAutoMappingConfigurationPass.php in vendor/symfony/validator/DependencyInjection/AddAutoMappingConfigurationPass.php
AddConsoleCommandPass.php in vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php
AddConstraintValidatorsPass.php in vendor/symfony/validator/DependencyInjection/AddConstraintValidatorsPass.php

... See full list

2 string references to 'Reference'
core.field_type_categories.yml in core/core.field_type_categories.yml
core/core.field_type_categories.yml
FieldUiHooks::formFieldUiFieldStorageAddFormAlter in core/modules/field_ui/src/Hook/FieldUiHooks.php
Implements hook_form_FORM_ID_alter() for 'field_ui_field_storage_add_form'.

File

vendor/symfony/dependency-injection/Reference.php, line 19

Namespace

Symfony\Component\DependencyInjection
View source
class Reference {
    public function __construct(string $id, int $invalidBehavior = ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE) {
    }
    public function __toString() : string {
        return $this->id;
    }
    
    /**
     * Returns the behavior to be used when the service does not exist.
     */
    public function getInvalidBehavior() : int {
        return $this->invalidBehavior;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
Reference::getInvalidBehavior public function Returns the behavior to be used when the service does not exist.
Reference::__construct public function 1
Reference::__toString public function

API Navigation

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