You are here

public function LockFormCommand::__construct in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 src/Ajax/LockFormCommand.php \Drupal\content_lock\Ajax\LockFormCommand::__construct()

LockFormCommand constructor.

Parameters

bool $lockable:

bool $lock:

File

src/Ajax/LockFormCommand.php, line 24

Class

LockFormCommand
Defines an AJAX command to lock current form.

Namespace

Drupal\content_lock\Ajax

Code

public function __construct($lockable = FALSE, $lock = FALSE) {
  $this->lockable = $lockable;
  $this->lock = $lock;
}