function DisplayPluginBase::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.
Overrides DisplayPluginInterface::attachTo
2 methods override DisplayPluginBase::attachTo()
- Attachment::attachTo in core/modules/ views/ src/ Plugin/ views/ display/ Attachment.php 
- Feed::attachTo in core/modules/ views/ src/ Plugin/ views/ display/ Feed.php 
File
- 
              core/modules/ views/ src/ Plugin/ views/ display/ DisplayPluginBase.php, line 409 
Class
- DisplayPluginBase
- Base class for views display plugins.
Namespace
Drupal\views\Plugin\views\displayCode
public function attachTo(ViewExecutable $view, $display_id, array &$build) {
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
