Same name and namespace in other branches
- 8.x-4.x src/ViewsSlideshowTypeBase.php \Drupal\views_slideshow\ViewsSlideshowTypeBase
Provides basic functionality for Views slideshow types.
Hierarchy
- class \Drupal\views_slideshow\ViewsSlideshowTypeBase extends \Drupal\Component\Plugin\PluginBase implements \Drupal\views_slideshow\ViewsSlideshowTypeInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait
Expanded class hierarchy of ViewsSlideshowTypeBase
1 file declares its use of ViewsSlideshowTypeBase
Fichier
-
src/
ViewsSlideshowTypeBase.php, line 12
Namespace
Drupal\views_slideshowView source
abstract class ViewsSlideshowTypeBase extends PluginBase implements ViewsSlideshowTypeInterface {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->setConfiguration($configuration);
}
/**
* {@inheritdoc}
*/
public function getTitle() {
return $this->pluginDefinition['title'];
}
/**
* {@inheritdoc}
*/
public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
}
/**
* {@inheritdoc}
*/
public function defaultConfiguration() {
return [];
}
/**
* {@inheritdoc}
*/
public function getConfiguration() {
return [
'id' => $this->getPluginId(),
] + $this->configuration;
}
/**
* {@inheritdoc}
*/
public function setConfiguration(array $configuration) {
$this->configuration = $configuration + $this->defaultConfiguration();
return $this;
}
/**
* {@inheritdoc}
*/
public function calculateDependencies() {
return [];
}
/**
* {@inheritdoc}
*/
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
}
}
Members
Titre Trier par ordre décroissant | Modifiers | Object type | Résumé | Overrides |
---|---|---|---|---|
ViewsSlideshowTypeBase::calculateDependencies | public | function | ||
ViewsSlideshowTypeBase::defaultConfiguration | public | function | 1 | |
ViewsSlideshowTypeBase::getConfiguration | public | function | ||
ViewsSlideshowTypeBase::getTitle | public | function | ||
ViewsSlideshowTypeBase::setConfiguration | public | function | ||
ViewsSlideshowTypeBase::submitConfigurationForm | public | function | ||
ViewsSlideshowTypeBase::validateConfigurationForm | public | function | 1 | |
ViewsSlideshowTypeBase::__construct | public | function |