View::get_html_classes( $classes = array() )
{@inheritDoc}
Source
File: src/Tribe/Views/V2/View.php
public function get_html_classes( array $classes = [] ) {
$base_classes = [
'tribe-common',
'tribe-events',
'tribe-events-view',
'tribe-events-view--' . $this->get_slug(),
];
$parents = array_map( static function ( $view_slug ) {
return 'tribe-events-view--' . $view_slug;
}, $this->get_parents_slug() );
$html_classes = array_merge( $base_classes, $parents, $classes );
/**
* Filters the HTML classes applied to a View top-level container.
*
* @since 4.9.13
*
* @param array $html_classes Array of classes used for this view.
* @param string $view_slug The current view slug.
* @param View $instance The current View object.
*/
$html_classes = apply_filters( 'tribe_events_views_v2_view_html_classes', $html_classes, $this->get_slug(), $this );
/**
* Filters the HTML classes applied to a specific View top-level container.
*
* @since 4.9.13
*
* @param array $html_classes Array of classes used for this view.
* @param View $instance The current View object.
*/
$html_classes = apply_filters( "tribe_events_views_v2_{$this->get_slug()}_view_html_classes", $html_classes, $this );
return $html_classes;
}