You are here

public static function AcsfEvent::create in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 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.

Return value

static Returns an instance of this class.

8 calls to AcsfEvent::create()
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.
acsf_install in ./acsf.install
Implements hook_install().
drush_acsf_duplication_scrub_batch in acsf_duplication/acsf_duplication.drush.inc
Command callback. Scrubs some data on the duplicated site.
drush_acsf_duplication_scrub_progress in acsf_duplication/acsf_duplication.drush.inc
Command callback. Outputs progress information on the site duplication scrub.

... See full list

File

src/Event/AcsfEvent.php, line 80

Class

AcsfEvent
ACSFEvent.

Namespace

Drupal\acsf\Event

Code

public static function create($type, array $context = []) {
  $registry = acsf_get_registry();
  $event = new static(new AcsfEventDispatcher(), new AcsfLog(), $type, $registry, $context);
  return $event;
}