public static function AcsfEvent::create in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 src/Event/AcsfEvent.php \Drupal\acsf\Event\AcsfEvent::create()
Creates an event using ACSF defaults.
Parameters
string $type: The type of event to execute.
array $context: A custom context to pass to event handlers.
\Symfony\Component\Console\Output\OutputInterface $output: The class that handles the logging messages.
Return value
static Returns an instance of this class.
8 calls to AcsfEvent::create()
- AcsfCommands::siteSync in src/
Commands/ AcsfCommands.php - Synchronize data with the Factory.
- AcsfDuplicationCommands::duplicationScrubBatch in acsf_duplication/
src/ Commands/ AcsfDuplicationCommands.php - Runs one iteration of the batch scrubbing process on the duplicated site.
- AcsfDuplicationCommands::duplicationScrubProgress in acsf_duplication/
src/ Commands/ AcsfDuplicationCommands.php - Returns information about the progress of the batch scrubbing process.
- AcsfSite::refresh in src/
AcsfSite.php - Refreshes the site information from the Site Factory.
- AcsfSite::save in src/
AcsfSite.php - Saves the internal state of this site.
File
- src/
Event/ AcsfEvent.php, line 90
Class
- AcsfEvent
- ACSF Event.
Namespace
Drupal\acsf\EventCode
public static function create($type, array $context = [], OutputInterface $output = NULL) {
$registry = acsf_get_registry();
$event = new static(new AcsfEventDispatcher(), new AcsfLog(), $type, $registry, $context);
$event->output = $output;
return $event;
}