ConfigurableFormEnhancerBase.php in Flexiform 8
File
src/FormEnhancer/ConfigurableFormEnhancerBase.php
View source
<?php
namespace Drupal\flexiform\FormEnhancer;
use Drupal\Core\Form\FormStateInterface;
abstract class ConfigurableFormEnhancerBase extends FormEnhancerBase implements ConfigurableFormEnhancerInterface {
public function configurationFormValidate(array $form, FormStateInterface $form_state) {
}
public function configurationFormSubmit(array $form, FormStateInterface $form_state) {
}
public function getConfiguration() {
return $this->configuration;
}
public function setConfiguration(array $configuration) {
$this->configuration = $configuration;
return $this;
}
public function applies($event) {
if ($event == 'configuration_form') {
return TRUE;
}
else {
return parent::applies($event);
}
}
}