protected function AnnotatedClassDiscovery::prepareAnnotationDefinition in Service Container 7
Same name in this branch
- 7 lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery::prepareAnnotationDefinition()
- 7 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
- 7.2 lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php \Drupal\Component\Annotation\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 lib/
Drupal/ Component/ Annotation/ Plugin/ Discovery/ AnnotatedClassDiscovery.php - Gets the definition of all plugins for this type.
File
- lib/
Drupal/ Component/ Annotation/ Plugin/ Discovery/ AnnotatedClassDiscovery.php, line 138 - Contains \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery.
Class
- AnnotatedClassDiscovery
- Defines a discovery mechanism to find annotated plugins in PSR-0 namespaces.
Namespace
Drupal\Component\Annotation\Plugin\DiscoveryCode
protected function prepareAnnotationDefinition(AnnotationInterface $annotation, $class) {
$annotation
->setClass($class);
}