function AutowireBlock::getLock
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/autowire_test/src/Plugin/Block/AutowireBlock.php \Drupal\autowire_test\Plugin\Block\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\BlockCode
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.