You are here

protected function ConfigPagesForm::prepareEntity in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/ConfigPagesForm.php \Drupal\config_pages\ConfigPagesForm::prepareEntity()
  2. 8.2 src/ConfigPagesForm.php \Drupal\config_pages\ConfigPagesForm::prepareEntity()

Overrides \Drupal\Core\Entity\EntityForm::prepareEntity().

Prepares the custom config page object.

Fills in a few default values, and then invokes hook_config_pages_prepare() on all modules.

Overrides ContentEntityForm::prepareEntity

File

src/ConfigPagesForm.php, line 96

Class

ConfigPagesForm
Form controller for the custom config page edit forms.

Namespace

Drupal\config_pages

Code

protected function prepareEntity() {
  $config_pages = $this->entity;

  // Set up default values, if required.
  $config_pages_type = $this->ConfigPagesTypeStorage
    ->load($config_pages
    ->bundle());
}