public function ImagemagickToolkit::findArgument in ImageMagick 8
Same name and namespace in other branches
- 8.2 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::findArgument()
Finds if a command line argument exists.
Parameters
string $arg: The command line argument to be found.
Return value
bool Returns the array key for the argument if it is found in the array, FALSE otherwise.
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 842
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function findArgument($arg) {
foreach ($this
->getArguments() as $i => $a) {
if (strpos($a, $arg) === 0) {
return $i;
}
}
return FALSE;
}