abstract class AvatarKitServiceBase in Avatar Kit 8.2
Abstract class for Avatar Kit service plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\avatars\Plugin\Avatars\Service\AvatarKitServiceBase implements AvatarKitServiceInterface
Expanded class hierarchy of AvatarKitServiceBase
File
- src/
Plugin/ Avatars/ Service/ AvatarKitServiceBase.php, line 14
Namespace
Drupal\avatars\Plugin\Avatars\ServiceView source
abstract class AvatarKitServiceBase extends PluginBase implements AvatarKitServiceInterface {
/**
* {@inheritdoc}
*/
public function defaultConfiguration() : array {
return [];
}
/**
* {@inheritdoc}
*/
public function getConfiguration() : array {
return $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) : void {
$this->configuration = NestedArray::mergeDeep($this
->defaultConfiguration(), $configuration);
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() : array {
return [];
}
/**
* {@inheritdoc}
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) : array {
return $form;
}
/**
* {@inheritdoc}
*/
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) : void {
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) : void {
}
/**
* {@inheritdoc}
*/
public function createIdentifier() : AvatarIdentifierInterface {
return new AvatarIdentifier();
}
}