public function ParagraphsBehaviorInterface::view

Extends the paragraph render array with behavior.

Parameters

array &$build: A renderable array representing the paragraph. The module may add elements to $build prior to rendering. The structure of $build is a renderable array as expected by drupal_render().

\Drupal\paragraphs\Entity\Paragraph $paragraph: The paragraph.

\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components.

string $view_mode: The view mode the entity is rendered in.

12 methods override ParagraphsBehaviorInterface::view()
ParagraphsAccordionPlugin::view in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsAccordionPlugin.php
Extends the paragraph render array with behavior.
ParagraphsAnchorPlugin::view in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsAnchorPlugin.php
Extends the paragraph render array with behavior.
ParagraphsBackgroundPlugin::view in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsBackgroundPlugin.php
Extends the paragraph render array with behavior.
ParagraphsGridLayoutPlugin::view in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsGridLayoutPlugin.php
Extends the paragraph render array with behavior.
ParagraphsLanguagePlugin::view in paragraphs_collection/src/Plugin/paragraphs/Behavior/ParagraphsLanguagePlugin.php
Extends the paragraph render array with behavior.

... See full list

File

paragraphs/src/ParagraphsBehaviorInterface.php, line 99

Class

ParagraphsBehaviorInterface
Provides an interface defining a paragraph behavior.

Namespace

Drupal\paragraphs

Code

public function view(array &$build, Paragraph $paragraph, EntityViewDisplayInterface $display, $view_mode);