You are here

public static function LayoutBuilderMigration::fromDisplay in Panelizer 8.5

Creates a migration batch process from an entity view display.

Parameters

\Drupal\layout_builder\Entity\LayoutEntityDisplayInterface $display: The entity view display.

Return value

\Drupal\Core\Batch\BatchBuilder The batch definition.

File

src/LayoutBuilderMigration.php, line 306

Class

LayoutBuilderMigration
Provides functionality to migrate Panelizer data to Layout Builder.

Namespace

Drupal\panelizer

Code

public static function fromDisplay(LayoutEntityDisplayInterface $display) {
  return \Drupal::classResolver(static::class)
    ->buildBatch($display);
}