You are here

public function BuildTrigger::setShouldNotBuild in Build Hooks 3.x

Sets should not build.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup $reason: The reason not to build.

Return value

$this

File

src/Event/BuildTrigger.php, line 93

Class

BuildTrigger
Defines a class for triggering a build.

Namespace

Drupal\build_hooks\Event

Code

public function setShouldNotBuild(TranslatableMarkup $reason) : BuildTrigger {
  $this->build = FALSE;
  $this->reason = $reason;
  return $this;
}