public function ContentLock::isJsLock in Content locking (anti-concurrent editing) 8
Same name and namespace in other branches
- 8.2 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 540
Class
- ContentLock
- Class ContentLock.
Namespace
Drupal\content_lock\ContentLockCode
public function isJsLock($entity_type_id) {
return in_array($entity_type_id, $this->config
->get("types_js_lock") ?: []);
}