public static function MockFileFinder::create in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::create()
Creates new mock file finder objects.
2 calls to MockFileFinder::create()
- AnnotatedClassDiscovery::getDefinitions in lib/
Drupal/ Component/ Annotation/ Plugin/ Discovery/ AnnotatedClassDiscovery.php - Gets the definition of all plugins for this type.
- AnnotatedClassDiscovery::getDefinitions in modules/
providers/ service_container_annotation_discovery/ src/ Plugin/ Discovery/ AnnotatedClassDiscovery.php - Gets the definition of all plugins for this type.
File
- lib/
Drupal/ Component/ Annotation/ Reflection/ MockFileFinder.php, line 38 - Contains \Drupal\Component\Annotation\Reflection\MockFileFinder.
Class
- MockFileFinder
- Defines a mock file finder that only returns a single filename.
Namespace
Drupal\Component\Annotation\ReflectionCode
public static function create($filename) {
$object = new static();
$object->filename = $filename;
return $object;
}