function ViewsConfigUpdater::needsBlockContentListingEmptyUpdate

Same name and namespace in other branches
  1. 11.x core/modules/views/src/ViewsConfigUpdater.php \Drupal\views\ViewsConfigUpdater::needsBlockContentListingEmptyUpdate()

Checks if 'block_content_listing_empty' needs to be removed.

Parameters

\Drupal\views\ViewEntityInterface $view: The view entity.

Return value

bool TRUE if the view has the plugin.

File

core/modules/views/src/ViewsConfigUpdater.php, line 357

Class

ViewsConfigUpdater
Provides a BC layer for modules providing old configurations.

Namespace

Drupal\views

Code

public function needsBlockContentListingEmptyUpdate(ViewEntityInterface $view) : bool {
  return $this->processDisplayHandlers($view, TRUE, function (&$handler, $handler_type) use ($view) {
    return $this->processBlockContentListingEmptyUpdate($view);
  });
}

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