You are here

VariantPluginEditBlockForm.php in Page Manager 8.4

Same filename and directory in other branches
  1. 8 page_manager_ui/src/Form/VariantPluginEditBlockForm.php

File

page_manager_ui/src/Form/VariantPluginEditBlockForm.php
View source
<?php

namespace Drupal\page_manager_ui\Form;


/**
 * Provides a form for editing a block plugin of a variant.
 */
class VariantPluginEditBlockForm extends VariantPluginConfigureBlockFormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'page_manager_variant_edit_block_form';
  }

  /**
   * {@inheritdoc}
   */
  protected function prepareBlock($block_id) {
    return $this
      ->getVariantPlugin()
      ->getBlock($block_id);
  }

  /**
   * {@inheritdoc}
   */
  protected function submitText() {
    return $this
      ->t('Update block');
  }

}

Classes

Namesort descending Description
VariantPluginEditBlockForm Provides a form for editing a block plugin of a variant.