Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Plugin/views/area/ViewsBlockArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);

$options = [];
/** @var \Drupal\block_field\BlockFieldManagerInterface $block_field_manager */
$definitions = $this->getBlockDefinitions();
foreach ($definitions as $id => $definition) {
// If allowed plugin ids are set then check that this block should be
Expand Down Expand Up @@ -107,7 +106,6 @@ protected function getBlockDefinitions() {
*/
public function render($empty = FALSE) {
$element = [];
/** @var \Drupal\block_field\BlockFieldItemInterface $item */
$block_instance = $this->getBlock();
// Make sure the block exists and is accessible.
if (!$block_instance || !$block_instance->access(\Drupal::currentUser())) {
Expand All @@ -133,7 +131,7 @@ public function render($empty = FALSE) {
}

/**
* {@inheritdoc}
* @return \Drupal\Core\Block\BlockPluginInterface
*/
protected function getBlock() {
if (empty($this->options['block_id'])) {
Expand Down