function AutowireBlock::getLock

Gets the lock service.

File

core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireBlock.php, line 46

Class

AutowireBlock
Provides a block that can be autowired.

Namespace

Drupal\autowire_test\Plugin\Block

Code

public function getLock() : LockBackendInterface {
  return $this->lock;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.