
| Current Path : /var/www/html1/testsite/web/core/modules/views/src/Plugin/views/field/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/testsite/web/core/modules/views/src/Plugin/views/field/Dropbutton.php |
<?php
namespace Drupal\views\Plugin\views\field;
use Drupal\views\ResultRow;
/**
* Provides a handler that renders links as dropbutton.
*
* @ingroup views_field_handlers
*
* @ViewsField("dropbutton")
*/
class Dropbutton extends Links {
/**
* {@inheritdoc}
*/
public function render(ResultRow $values) {
$links = $this->getLinks();
if (!empty($links)) {
return [
'#type' => 'dropbutton',
'#links' => $links,
];
}
else {
return '';
}
}
}