You are here

protected function Functions::prepareID in Drupal 7 to 8/9 Module Upgrader 8

5 calls to Functions::prepareID()
Functions::delete in src/Plugin/DMU/Indexer/Functions.php
Functions::execute in src/Plugin/DMU/Indexer/Functions.php
Functions::get in src/Plugin/DMU/Indexer/Functions.php
Functions::getUsages in src/Plugin/DMU/Indexer/Functions.php
Functions::has in src/Plugin/DMU/Indexer/Functions.php

File

src/Plugin/DMU/Indexer/Functions.php, line 23

Class

Functions
Plugin annotation @Indexer( id = "function" )

Namespace

Drupal\drupalmoduleupgrader\Plugin\DMU\Indexer

Code

protected function prepareID($id) {
  return preg_replace('/^hook_/', $this->target
    ->id() . '_', $id);
}