fox-1.1.2/src/Plugin/FoxCommand/FoxCommandBaseClass.php

src/Plugin/FoxCommand/FoxCommandBaseClass.php
<?php

namespace Drupal\fox\Plugin\FoxCommand;

use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\fox\FoxCommandsHelperTrait;
use Drupal\fox\FoxCommonFunctionsTrait;
use Drupal\fox\Plugin\FoxCommandInterface;

/**
 * FoxCommandBase plugin.
 */
class FoxCommandBaseClass implements FoxCommandInterface {

  use StringTranslationTrait;
  use FoxCommandsHelperTrait;
  use FoxCommonFunctionsTrait;

  /**
   * {@inheritdoc}
   */
  public function getPluginId() {
    // Return the unique identifier for the plugin.
    return $this->pluginId;
  }

  /**
   * {@inheritdoc}
   */
  public function getPluginDefinition() {
    // Return the plugin definition.
    return [
      'id' => $this->pluginId,
      'label' => $this->label,
    ];
  }

  /**
   * {@inheritdoc}
   */
  public function execute(array $params, array $variables, array $options): array {
    return [];
  }

}

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

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