DateRecurInterpreterPluginBase.php in Recurring Dates Field 3.x
File
src/Plugin/DateRecurInterpreterPluginBase.php
View source
<?php
declare (strict_types=1);
namespace Drupal\date_recur\Plugin;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Plugin\PluginBase;
use Drupal\Core\Plugin\PluginWithFormsTrait;
abstract class DateRecurInterpreterPluginBase extends PluginBase implements DateRecurInterpreterPluginInterface {
use PluginWithFormsTrait;
public function calculateDependencies() : array {
return [];
}
public function getConfiguration() : array {
return $this->configuration;
}
public function setConfiguration(array $configuration) : void {
$this->configuration = NestedArray::mergeDeep($this
->defaultConfiguration(), $configuration);
}
public function defaultConfiguration() : array {
return [];
}
}