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

Breadcrumb

  1. Drupal Core 11.1.x

AsTaggedItem.php

Namespace

Symfony\Component\DependencyInjection\Attribute

File

vendor/symfony/dependency-injection/Attribute/AsTaggedItem.php

View source
<?php


/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Symfony\Component\DependencyInjection\Attribute;


/**
 * An attribute to tell under which index and priority a service class should be found in tagged iterators/locators.
 *
 * @author Nicolas Grekas <p@tchwork.com>
 */
class AsTaggedItem {
    
    /**
     * @param string|null $index    The property or method to use to index the item in the locator
     * @param int|null    $priority The priority of the item; the higher the number, the earlier the tagged service will be located in the locator
     */
    public function __construct(?string $index = null, ?int $priority = null) {
    }

}

Classes

Title Deprecated Summary
AsTaggedItem An attribute to tell under which index and priority a service class should be found in tagged iterators/locators.

API Navigation

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