SIS_Admin_Main::get_crop_position_label PHP Метод

get_crop_position_label() публичный статический Метод

Return the crop position label from the slug
Автор: Nicolas Juen
public static get_crop_position_label ( string $crop_position ) : string
$crop_position string
Результат string
    public static function get_crop_position_label($crop_position)
    {
        if (!self::is_crop_position($crop_position)) {
            return '';
        }
        $crops = self::get_available_crop();
        return $crops[$crop_position];
    }