
| Current Path : /var/www/html/musik/web/modules/contrib/entity_export_csv/src/Form/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/musik/web/modules/contrib/entity_export_csv/src/Form/EntityExportCsvDuplicateForm.php |
<?php
namespace Drupal\entity_export_csv\Form;
use Drupal\Core\Form\FormStateInterface;
/**
* Class EntityExportCsvDuplicateForm.
*
* @package Drupal\entity_export_csv\Form
*/
class EntityExportCsvDuplicateForm extends EntityExportCsvForm {
/**
* {@inheritdoc}
*/
public function form(array $form, FormStateInterface $form_state) {
/** @var \Drupal\offcanvas_edit\Entity\OffcanvasEditInterface $entity */
$entity = $this->entity->createDuplicate();
$entity->set('label', $this->t('Duplicate of @label', ['@label' => $this->entity->label()]));
$this->entity = $entity;
return parent::form($form, $form_state);
}
}