View::get_label()
{@inheritDoc}
Source
File: src/Tribe/Views/V2/View.php
public function get_label() {
$label = ucfirst( $this->slug );
/**
* Pass by the translation engine, dont remove.
*/
$label = __( $label, 'the-events-calendar' );
/**
* Filters the label that will be used on the UI for views listing.
*
* @since 4.9.4
*
* @param string $label Label of the Current view.
* @param View_Interface $view The current view whose template variables are being set.
*/
$label = apply_filters( 'tribe_events_views_v2_view_label', $label, $this );
/**
* Filters the label that will be used on the UI for views listing.
*
* @since 4.9.4
*
* @param string $label Label of the Current view.
* @param View_Interface $view The current view whose template variables are being set.
*/
$label = apply_filters( "tribe_events_views_v2_view_{$this->slug}_label", $label, $this );
return $label;
}