You are here

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\Indexer

Code

public function get($identifier) {
  $file = $this
    ->getQuery([
    'file',
  ])
    ->condition('id', $identifier)
    ->execute()
    ->fetchField();
  return $this->target
    ->open($file)
    ->find(Filter::isClass($identifier))
    ->get(0);
}