*/ class TitleColumn extends ModelColumn { protected $sortColumn = 'title'; /** * @inheritDoc * * @since 3.6.0 */ public static function getId(): string { return 'title'; } /** * @inheritDoc * * @since 3.6.0 */ public function getLabel(): string { return __('Event', 'give'); } /** * @inheritDoc * * @since 3.6.0 * * @param Event $model */ public function getCellValue($model): string { return sprintf( '%s', admin_url("edit.php?post_type=give_forms&page=give-event-tickets&id={$model->id}"), __('Visit event page', 'give'), $model->title ); } }