You are here

public function Mock::alter in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/Framework/Mock.php \Drupal\realistic_dummy_content_api\Framework\Mock::alter()

File

api/src/Framework/Mock.php, line 88

Class

Mock
Represents a mock framework (experimental).

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL) {
  if ($type == 'realistic_dummy_content_attribute_manipulator') {
    return realistic_dummy_content_api_realistic_dummy_content_attribute_manipulator_alter($data, $context1, $context2, $context3);
  }
}