diff --git a/core/modules/views/src/Plugin/Block/ViewsBlock.php b/core/modules/views/src/Plugin/Block/ViewsBlock.php index 6578cc6..34116fd 100644 --- a/core/modules/views/src/Plugin/Block/ViewsBlock.php +++ b/core/modules/views/src/Plugin/Block/ViewsBlock.php @@ -34,6 +34,9 @@ public function build() { if (!empty($this->context[$argument_name])) { if ($value = $this->context[$argument_name]->getContextValue()) { + + // Context values are often entities, but views arguments expect to + // receive just the entity ID, convert it. if ($value instanceof EntityInterface) { $value = $value->id(); }