You are here

public function LayoutBuilderDisplayVariant::getWizardOperations in Page Manager 8.4

Retrieve a list of FormInterface classes by their step key in the wizard.

Parameters

mixed $cached_values: The cached values used in the wizard. The plugin we're editing will always be assigned to the 'plugin' key.

Return value

array An associative array keyed on the step name with an array value with the following keys:

  • title (string): Human-readable title of the step.
  • form (string): Fully-qualified class name of the form for this step.

Overrides PluginWizardInterface::getWizardOperations

File

src/Plugin/DisplayVariant/LayoutBuilderDisplayVariant.php, line 66

Class

LayoutBuilderDisplayVariant
Provides a Layout Builder variant.

Namespace

Drupal\page_manager\Plugin\DisplayVariant

Code

public function getWizardOperations($cached_values) {
  $operations = [];
  $operations['layout_builder'] = [
    'title' => $this
      ->t('Layout'),
    'form' => LayoutBuilderForm::class,
  ];
  return $operations;
}