You are here

protected function AnnotatedClassDiscovery::prepareAnnotationDefinition in Service Container 7.2

Same name in this branch
  1. 7.2 lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery::prepareAnnotationDefinition()
  2. 7.2 modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php \Drupal\service_container_annotation_discovery\Plugin\Discovery\AnnotatedClassDiscovery::prepareAnnotationDefinition()
Same name and namespace in other branches
  1. 7 modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php \Drupal\service_container_annotation_discovery\Plugin\Discovery\AnnotatedClassDiscovery::prepareAnnotationDefinition()

Prepares the annotation definition.

Parameters

\Drupal\Component\Annotation\AnnotationInterface $annotation: The annotation derived from the plugin.

string $class: The class used for the plugin.

1 call to AnnotatedClassDiscovery::prepareAnnotationDefinition()
AnnotatedClassDiscovery::getDefinitions in modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php
Gets the definition of all plugins for this type.

File

modules/providers/service_container_annotation_discovery/src/Plugin/Discovery/AnnotatedClassDiscovery.php, line 162
Contains \Drupal\service_container_annotation_discovery\Plugin\Discovery\AnnotatedClassDiscovery

Class

AnnotatedClassDiscovery
TODO

Namespace

Drupal\service_container_annotation_discovery\Plugin\Discovery

Code

protected function prepareAnnotationDefinition($annotation, $class) {
  $annotation
    ->setClass($class);
}