public function DisplayPluginInterface::attachTo in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::attachTo()
- 9 core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php \Drupal\views\Plugin\views\display\DisplayPluginInterface::attachTo()
Allows displays to attach to other views.
Parameters
\Drupal\views\ViewExecutable $view: The views executable.
string $display_id: The display to attach to.
array $build: The parent view render array.
1 method overrides DisplayPluginInterface::attachTo()
- Feed::attachTo in core/
modules/ views/ src/ Plugin/ views/ display/ Feed.php - Allows displays to attach to other views.
File
- core/
modules/ views/ src/ Plugin/ views/ display/ DisplayPluginInterface.php, line 170
Class
- DisplayPluginInterface
- Provides an interface for Views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
public function attachTo(ViewExecutable $view, $display_id, array &$build);