ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Link.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
27class Link extends Column implements C\Link
28{
29 public function format($value): string|Component
30 {
31 $this->checkArgInstanceOf('value', $value, Standard::class);
32 return $value;
33 }
37 public function getOrderingLabels(): array
38 {
39 return [
40 $this->asc_label ?? $this->getTitle() . self::SEPERATOR . $this->lng->txt('order_option_alphabetical_ascending'),
41 $this->desc_label ?? $this->getTitle() . self::SEPERATOR . $this->lng->txt('order_option_alphabetical_descending')
42 ];
43 }
44}
A component is the most general form of an entity in the UI.
Definition: Component.php:28