You are here

PanelsEditBlockForm.php in Panels 8.3

Same filename and directory in other branches
  1. 8.4 src/Form/PanelsEditBlockForm.php

Namespace

Drupal\panels\Form

File

src/Form/PanelsEditBlockForm.php
View source
<?php

/**
 * @file
 */
namespace Drupal\panels\Form;


/**
 * Provides a form for editing a block plugin of a variant.
 */
class PanelsEditBlockForm extends PanelsBlockConfigureFormBase {

  /**
   * {@inheritdoc}
   */
  public function getFormId() {
    return 'panels_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
PanelsEditBlockForm Provides a form for editing a block plugin of a variant.