public function Classes::get in Drupal 7 to 8/9 Module Upgrader 8
Overrides IndexerInterface::get
File
- src/
Plugin/ DMU/ Indexer/ Classes.php, line 62
Class
- Classes
- Plugin annotation @Indexer( id = "class" )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\IndexerCode
public function get($identifier) {
$file = $this
->getQuery([
'file',
])
->condition('id', $identifier)
->execute()
->fetchField();
return $this->target
->open($file)
->find(Filter::isClass($identifier))
->get(0);
}