You are here

public static function MockFileFinder::create in Plug 7

Creates new mock file finder objects.

1 call to MockFileFinder::create()
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/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\Reflection

Code

public static function create($filename) {
  $object = new static();
  $object->filename = $filename;
  return $object;
}