public function Functions::hasExecutable in Drupal 7 to 8/9 Module Upgrader 8
Returns if the specified index object can be evaluated and executed safely.
Parameters
string $id: The object identifier.
Return value
bool
Overrides IndexerExecutionInterface::hasExecutable
1 call to Functions::hasExecutable()
- Functions::execute in src/
Plugin/ DMU/ Indexer/ Functions.php
File
- src/
Plugin/ DMU/ Indexer/ Functions.php, line 153
Class
- Functions
- Plugin annotation @Indexer( id = "function" )
Namespace
Drupal\drupalmoduleupgrader\Plugin\DMU\IndexerCode
public function hasExecutable($identifier) {
if ($this
->has($identifier)) {
$ret = $this
->getQuery()
->condition('id', $this
->prepareID($identifier))
->condition('has_logic', 0)
->countQuery()
->execute()
->fetchField();
return $ret;
}
else {
return FALSE;
}
}