function TempStoreTrait::validateLock

See also

\Drupal\rules\Ui\RulesUiHandlerInterface::validateLock()

File

src/Ui/TempStoreTrait.php, line 267

Class

TempStoreTrait
Provides methods for modified rules components in temporary storage.

Namespace

Drupal\rules\Ui

Code

public function validateLock(array &$form, FormStateInterface $form_state) {
    if ($this->isLocked()) {
        $form_state->setErrorByName('locked', $this->lockInformationMessage());
    }
}