You are here

interface ParagraphsViewmodeBehaviorInterface in Paragraphs View Modes 8

Interface ParagraphsViewmodeBehaviorInterface.

Hierarchy

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_viewmode
View 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

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19
ParagraphsBehaviorInterface::buildBehaviorForm public function Builds a behavior perspective for each paragraph based on its type. 1
ParagraphsBehaviorInterface::getFieldNameOptions public function Returns list of field names for the given paragraph type and field type. 1
ParagraphsBehaviorInterface::isApplicable public static function Returns if the plugin can be used for the provided Paragraphs type. 1
ParagraphsBehaviorInterface::preprocess public function Adds a default set of helper variables for preprocessors and templates. 1
ParagraphsBehaviorInterface::settingsIcon public function Returns a short info icon for the current behavior settings. 1
ParagraphsBehaviorInterface::settingsSummary public function Returns a short summary for the current behavior settings. 1
ParagraphsBehaviorInterface::submitBehaviorForm public function Submit the values taken from the form to store the values. 1
ParagraphsBehaviorInterface::validateBehaviorForm public function Validates the behavior fields form. 1
ParagraphsBehaviorInterface::view public function Extends the paragraph render array with behavior. 4
ParagraphsViewmodeBehaviorInterface::entityViewModeAlter public function Allow plugin to alter the paragraph view mode. 1
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18