When used externally, this is how a view gets run and returns
data in the format required.
The base class cannot be executed.
Overrides DisplayPluginBase::execute
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Attachment.php, line 52
- Definition of Drupal\views\Plugin\views\display\Attachment.
Class
- Attachment
- The plugin that handles an attachment display.
Namespace
Drupal\views\Plugin\views\display
Code
public function execute() {
return $this->view
->render($this->display['id']);
}