You are here

public function ContainsLogicFilter::whitelist in Drupal 7 to 8/9 Module Upgrader 8

Specify a function to be whitelisted so that it will not be considered logic.

Parameters

string ... $function: At least one function to add to the whitelist.

File

src/Utility/Filter/ContainsLogicFilter.php, line 39

Class

ContainsLogicFilter

Namespace

Drupal\drupalmoduleupgrader\Utility\Filter

Code

public function whitelist() {
  $this->whitelist = array_unique(array_merge($this->whitelist, func_get_args()));
}