ckeditor5-1.0.x-dev/src/Plugin/CKEditor5PluginInterface.php

src/Plugin/CKEditor5PluginInterface.php
<?php

namespace Drupal\ckeditor5\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\editor\Entity\Editor;

/**
 * Defines an interface for CKEditor5 plugins.
 *
 * @see \Drupal\ckeditor5\Plugin\CKEditor5PluginBase
 * @see \Drupal\ckeditor5\Plugin\CKEditor5PluginConfigurableInterface
 * @see \Drupal\ckeditor5\Plugin\CKEditor5PluginManager
 * @see \Drupal\ckeditor5\Annotation\CKEditor5Plugin
 * @see plugin_api
 */
interface CKEditor5PluginInterface extends PluginInspectionInterface {

  /**
   * Allows a plugin to modify its static configuration.
   *
   * @param array $static_plugin_config
   *   The plugin_config entry from the YAML or annotation, if any. If none is
   *   specified, then the empty array.
   * @param \Drupal\editor\Entity\Editor $editor
   *   A configured text editor object.
   *
   * @return array
   *   Returns the received $static_plugin_config plus dynamic additions or
   *   alterations.
   */
  public function getDynamicPluginConfig(array $static_plugin_config, Editor $editor);

}

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

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