/** * Retrieve the class name for a named view. * * @param string $view_name The name of the view that is unique for this class. * * @return string */ function get_view_class($view_name) { return WP_Metadata::get_view_class('form', $view_name, get_class($this)); }
/** * Retrieve the class name for a named view. * * @param bool|string $view_name The name of the view that is unique for this class. * * @return string */ function get_view_class($view_name = false) { if (!$view_name) { $view_name = $this->view; } return is_object($this->view) ? get_class($this->view) : WP_Metadata::get_view_class('field', $view_name, get_class($this)); }