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