function AnnotationInterface::setProvider

Same name in other branches
  1. 9 core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setProvider()
  2. 10 core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setProvider()
  3. 11.x core/lib/Drupal/Component/Annotation/AnnotationInterface.php \Drupal\Component\Annotation\AnnotationInterface::setProvider()

Sets the name of the provider of the annotated class.

Parameters

string $provider:

2 methods override AnnotationInterface::setProvider()
AnnotationBase::setProvider in core/lib/Drupal/Component/Annotation/AnnotationBase.php
Sets the name of the provider of the annotated class.
Plugin::setProvider in core/lib/Drupal/Component/Annotation/Plugin.php
Sets the name of the provider of the annotated class.

File

core/lib/Drupal/Component/Annotation/AnnotationInterface.php, line 27

Class

AnnotationInterface
Defines a common interface for classed annotations.

Namespace

Drupal\Component\Annotation

Code

public function setProvider($provider);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.