Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsConfigUpdater.php

function ViewsConfigUpdater::needsEntityArgumentUpdate

Checks if 'numeric' arguments should be converted to 'entity_target_id'.

Parameters

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

Return value

bool TRUE if the view has any arguments that reference an entity reference that need to be converted from 'numeric' to 'entity_target_id'.

File

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

Class

ViewsConfigUpdater
Provides a BC layer for modules providing old configurations.

Namespace

Drupal\views

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal