You are here

class AcsfThemeDuplicationScrubbingHandler in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/Event/AcsfThemeDuplicationScrubbingHandler.php \Drupal\acsf\Event\AcsfThemeDuplicationScrubbingHandler

Truncates the pending theme notification table.

Hierarchy

Expanded class hierarchy of AcsfThemeDuplicationScrubbingHandler

File

src/Event/AcsfThemeDuplicationScrubbingHandler.php, line 8

Namespace

Drupal\acsf\Event
View source
class AcsfThemeDuplicationScrubbingHandler extends AcsfEventHandler {

  /**
   * Implements AcsfEventHandler::handle().
   */
  public function handle() {
    $this
      ->consoleLog(dt('Entered @class', [
      '@class' => get_class($this),
    ]));
    \Drupal::database()
      ->truncate('acsf_theme_notifications')
      ->execute();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AcsfEventHandler::$completed public property The time that the handler was completed.
AcsfEventHandler::$message public property Any messages triggered by the handler.
AcsfEventHandler::$started public property The time that the handler was started.
AcsfEventHandler::consoleLog public function Writes a log message to the console.
AcsfEventHandler::__construct public function Constructor. 1
AcsfThemeDuplicationScrubbingHandler::handle public function Implements AcsfEventHandler::handle(). Overrides AcsfEventHandler::handle