ConfigurableActionBase.php in Zircon Profile 8
File
core/lib/Drupal/Core/Action/ConfigurableActionBase.php
View source
<?php
namespace Drupal\Core\Action;
use Drupal\Component\Plugin\ConfigurablePluginInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginFormInterface;
abstract class ConfigurableActionBase extends ActionBase implements ConfigurablePluginInterface, PluginFormInterface {
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configuration += $this
->defaultConfiguration();
}
public function defaultConfiguration() {
return array();
}
public function getConfiguration() {
return $this->configuration;
}
public function setConfiguration(array $configuration) {
$this->configuration = $configuration;
}
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
}
public function calculateDependencies() {
return array();
}
}