You are here

function devel_generate_operation in Devel 4.x

Same name and namespace in other branches
  1. 8.3 devel_generate/devel_generate.batch.inc \devel_generate_operation()
  2. 8 devel_generate/devel_generate.batch.inc \devel_generate_operation()
  3. 8.2 devel_generate/devel_generate.batch.inc \devel_generate_operation()

Calls the correct method responsible for handling a given batch operation.

2 string references to 'devel_generate_operation'
ContentDevelGenerate::generateBatchContent in devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php
Generate content in batch mode.
MediaDevelGenerate::generateBatchMedia in devel_generate/src/Plugin/DevelGenerate/MediaDevelGenerate.php
Method for creating media when number of elements is greater than 50.

File

devel_generate/devel_generate.batch.inc, line 13
Provides common batch functions for every DevelGeneratePlugin.

Code

function devel_generate_operation(DevelGenerateBaseInterface $class, $method, $vars, &$context) {
  return $class
    ->{$method}($vars, $context);
}