contacts_events-8.x-1.x-dev/src/Guard/WorkflowGuard.php
src/Guard/WorkflowGuard.php
<?php
namespace Drupal\contacts_events\Guard;
use Drupal\state_machine\Guard\GuardInterface;
use Drupal\state_machine\Plugin\Workflow\WorkflowInterface;
use Drupal\state_machine\Plugin\Workflow\WorkflowTransition;
use Drupal\Core\Entity\EntityInterface;
/**
* Workflow guard for the booking transitions.
*/
class WorkflowGuard implements GuardInterface {
/**
* {@inheritdoc}
*/
public function allowed(WorkflowTransition $transition, WorkflowInterface $workflow, EntityInterface $entity) {
return NULL;
}
}
