interface MentionsPluginInterface in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.2 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.3 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.4 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.5 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.6 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.7 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 8.8 modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 10.3.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 10.0.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 10.1.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
- 10.2.x modules/custom/mentions/src/MentionsPluginInterface.php \Drupal\mentions\MentionsPluginInterface
Interface MentionsPluginInterface.
Hierarchy
- interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- interface \Drupal\mentions\MentionsPluginInterface
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\mentionsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
MentionsPluginInterface:: |
public | function | The mentionPresaveCallback function. | 1 |
MentionsPluginInterface:: |
public | function | The outputCallback function. | 1 |
MentionsPluginInterface:: |
public | function | The patternCallback function. | 1 |
MentionsPluginInterface:: |
public | function | The settingsCallback function. | 1 |
MentionsPluginInterface:: |
public | function | The settingsSubmitCallback function. | 1 |
MentionsPluginInterface:: |
public | function | The targetCallback function. | 1 |