You are here

public function Definition::addTag in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Definition.php \Symfony\Component\DependencyInjection\Definition::addTag()

Adds a tag for this definition.

Parameters

string $name The tag name:

array $attributes An array of attributes:

Return value

Definition The current instance

File

vendor/symfony/dependency-injection/Definition.php, line 470

Class

Definition
Definition represents a service definition.

Namespace

Symfony\Component\DependencyInjection

Code

public function addTag($name, array $attributes = array()) {
  $this->tags[$name][] = $attributes;
  return $this;
}