interface ParagraphsViewmodeBehaviorInterface in Paragraphs View Modes 8
Interface ParagraphsViewmodeBehaviorInterface.
Hierarchy
- interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface
- interface \Drupal\paragraphs\ParagraphsBehaviorInterface
- interface \Drupal\paragraphs_viewmode\ParagraphsViewmodeBehaviorInterface
- interface \Drupal\paragraphs\ParagraphsBehaviorInterface
Expanded class hierarchy of ParagraphsViewmodeBehaviorInterface
All classes that implement ParagraphsViewmodeBehaviorInterface
2 files declare their use of ParagraphsViewmodeBehaviorInterface
- ParagraphsViewmodeBehavior.php in src/
Plugin/ paragraphs/ Behavior/ ParagraphsViewmodeBehavior.php - paragraphs_viewmode.module in ./
paragraphs_viewmode.module - Contains paragraph_viewmode.module.
File
- src/
ParagraphsViewmodeBehaviorInterface.php, line 11
Namespace
Drupal\paragraphs_viewmodeView source
interface ParagraphsViewmodeBehaviorInterface extends ParagraphsBehaviorInterface {
/**
* Allow plugin to alter the paragraph view mode.
*
* @param string $view_mode
* The current view mode.
* @param \Drupal\paragraphs\ParagraphInterface $paragraph
* The paragraph.
* @param array $context
* Additional context information.
*
* @return mixed
* The new view mode.
*/
public function entityViewModeAlter(&$view_mode, ParagraphInterface $paragraph, array $context);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
ParagraphsBehaviorInterface:: |
public | function | Builds a behavior perspective for each paragraph based on its type. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Returns list of field names for the given paragraph type and field type. | 1 |
ParagraphsBehaviorInterface:: |
public static | function | Returns if the plugin can be used for the provided Paragraphs type. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Adds a default set of helper variables for preprocessors and templates. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Returns a short info icon for the current behavior settings. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Returns a short summary for the current behavior settings. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Submit the values taken from the form to store the values. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Validates the behavior fields form. | 1 |
ParagraphsBehaviorInterface:: |
public | function | Extends the paragraph render array with behavior. | 4 |
ParagraphsViewmodeBehaviorInterface:: |
public | function | Allow plugin to alter the paragraph view mode. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |