You are here

public function ContentLock::isJsLock in Content locking (anti-concurrent editing) 8.2

Same name and namespace in other branches
  1. 8 src/ContentLock/ContentLock.php \Drupal\content_lock\ContentLock\ContentLock::isJsLock()

Check if for this entity_type content lock over JS is enabled.

Parameters

string $entity_type_id: The entity type id.

Return value

bool

File

src/ContentLock/ContentLock.php, line 544

Class

ContentLock
Class ContentLock.

Namespace

Drupal\content_lock\ContentLock

Code

public function isJsLock($entity_type_id) {
  return in_array($entity_type_id, $this->config
    ->get("types_js_lock") ?: []);
}