association-1.0.0-alpha2/src/Plugin/LandingPagePluginBase.php

src/Plugin/LandingPagePluginBase.php
<?php

namespace Drupal\association\Plugin;

use Drupal\association\Entity\AssociationInterface;
use Drupal\Core\Plugin\PluginBase;

/**
 * Base plugin class for landing page handler plugins.
 *
 * @see \Drupal\association\Plugin\LandingPagePluginInterface
 */
abstract class LandingPagePluginBase extends PluginBase implements LandingPagePluginInterface {

  /**
   * {@inheritdoc}
   */
  public function getConfiguration() {
    return $this->configuration;
  }

  /**
   * {@inheritdoc}
   */
  public function setConfiguration(array $configuration) {
    $this->configuration = $configuration + $this->defaultConfiguration();
  }

  /**
   * {@inheritdoc}
   */
  public function onCreate(AssociationInterface $association): void {
  }

  /**
   * {@inheritdoc}
   */
  public function onUpdate(AssociationInterface $association): void {
  }

  /**
   * {@inheritdoc}
   */
  public function onPreDelete(array $associations): void {
  }

  /**
   * {@inheritdoc}
   */
  public function onPostDelete(array $association): void {
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc