PanelsEditBlockForm.php in Panels 8.3
Same filename and directory in other branches
Namespace
Drupal\panels\FormFile
src/Form/PanelsEditBlockForm.phpView 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
Name | Description |
---|---|
PanelsEditBlockForm | Provides a form for editing a block plugin of a variant. |