You are here

interface MentionsPluginInterface in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  2. 8 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  3. 8.2 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  4. 8.3 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  5. 8.4 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  6. 8.5 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  7. 8.6 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  8. 8.7 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  9. 8.8 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  10. 10.0.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  11. 10.1.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
  12. 10.2.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface

Interface MentionsPluginInterface.

Hierarchy

Expanded class hierarchy of MentionsPluginInterface

All classes that implement MentionsPluginInterface

2 files declare their use of MentionsPluginInterface
Entity.php in modules/custom/mentions/src/Plugin/Mentions/Entity.php
MentionsFilter.php in modules/custom/mentions/src/Plugin/Filter/MentionsFilter.php

File

modules/custom/mentions/src/MentionsPluginInterface.php, line 13

Namespace

Drupal\mentions
View source
interface MentionsPluginInterface extends ContainerFactoryPluginInterface {

  /**
   * The targetCallback function.
   *
   * @param string $value
   *   The value.
   * @param array|string $settings
   *   The settings.
   *
   * @return mixed
   *   Returns mixed.
   */
  public function targetCallback($value, $settings);

  /**
   * The outputCallback function.
   *
   * @param string $mention
   *   The mention.
   * @param array|string $settings
   *   The settings.
   *
   * @return mixed
   *   Returns mixed.
   */
  public function outputCallback($mention, $settings);

  /**
   * The patternCallback function.
   *
   * @param array|string $settings
   *   The settings.
   * @param string $regex
   *   The pattern.
   *
   * @return mixed
   *   Returns mixed.
   */
  public function patternCallback($settings, $regex);

  /**
   * The settingsCallback function.
   *
   * @param \Drupal\Core\Form\FormInterface $form
   *   The form.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state.
   * @param mixed $type
   *   The type.
   *
   * @return mixed
   *   Returns mixed.
   */
  public function settingsCallback(FormInterface $form, FormStateInterface $form_state, $type);

  /**
   * The settingsSubmitCallback function.
   *
   * @param \Drupal\Core\Form\FormInterface $form
   *   The form.
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state.
   * @param mixed $type
   *   The type.
   *
   * @return mixed
   *   Returns mixed.
   */
  public function settingsSubmitCallback(FormInterface $form, FormStateInterface $form_state, $type);

  /**
   * The mentionPresaveCallback function.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity.
   *
   * @return mixed
   *   Returns mixed.
   */
  public function mentionPresaveCallback(EntityInterface $entity);

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin. 120
MentionsPluginInterface::mentionPresaveCallback public function The mentionPresaveCallback function. 1
MentionsPluginInterface::outputCallback public function The outputCallback function. 1
MentionsPluginInterface::patternCallback public function The patternCallback function. 1
MentionsPluginInterface::settingsCallback public function The settingsCallback function. 1
MentionsPluginInterface::settingsSubmitCallback public function The settingsSubmitCallback function. 1
MentionsPluginInterface::targetCallback public function The targetCallback function. 1